Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts Download: Automated? #6

Open
shashankrao opened this issue Sep 5, 2013 · 7 comments
Open

Scripts Download: Automated? #6

shashankrao opened this issue Sep 5, 2013 · 7 comments
Assignees

Comments

@shashankrao
Copy link
Collaborator

When the user asks to Download Scripts, why not tar the latest copy of the scripts on the fly and make available for download?

Instead of always statically generating scipts.zip

@architshukla
Copy link
Owner

Okay this will need a little thinking. It's easy to do on linux, we can make a shell script for it. Problem is for windows (no inbuilt tar). One alternative is: we can assume Git is installed on the system and then I can make a batch file for this. Fine with you?

@ghost ghost assigned architshukla and shashankrao Sep 6, 2013
@architshukla
Copy link
Owner

Archiving the files each time a user requests a download will have to be accomplished by maintaining a separate file for each download. This can be done if we

  • Pass a file name to a script
  • Run commands to tar and gzip the python scripts to the given input file name
  • Allow the user to download the file

Issue:

  • To initiate download, a redirection must take place. So, the file cannot be deleted right after it has been downloaded
  • We can work around the situation by creating a download folder where we dump all the scripts downloaded by all users. The scripts can be cleaned by deleting files over a day old (This is done when the user accesses the home page)

Now we can take a vote on whether to

  1. Keep a static tar file
  2. Dynamically tar the file

@architshukla
Copy link
Owner

Comments, anyone?

@shashankrao
Copy link
Collaborator Author

Do we even need a scripts download option?

  1. Its not for the end user.
  2. At the time of submitting the project, we keep an up-to-date version of the code. (For the demo)

Its not worth the hassle. imo.

@architshukla
Copy link
Owner

  1. The idea behind the script download link is to give users the flexibility to use the system without the user interface. This is always a good thing from my experience.
  2. Let's not look at it from the submission point of view because if we had that in mind from the start, we wouldn't have come this far 😉

@shashankrao
Copy link
Collaborator Author

  1. The can already do that by running it from the scripts directory.
  2. Not looking at it in that way. 😉

@architshukla
Copy link
Owner

Yeah, but assuming we have it hosted somewhere, they don't really have access to the scripts directly unless they wget the correct file names (which they are unlikely to come up with in the first place)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants