We've talked about where to put administrative scripts for a Pylons application but never resolved it. I realized it would make more sense to preparse my glossary data and store it in a pickle rather than parsing it every time the application starts. So there are three ways to set it up:
1) Incorporate it into websetup.setup_config(), which is currently empty. This is fine except I'll need to periodically recreate the pickle when the source file changes, and I may not want to re-run everything else websetup might be doing at that time. Can I pass command-line arguments to it, or where does the 'vars' argument come from? I looked in paste.script.appinstall but the code is a bit complex. 2) Add a Paster command for every admin utility. Can I have Paster commands that are private to the application? 3) Create a top-level script. Then where would I put it, and would I have to parse the config and set up the environment manually? I don't want the scripts all mixed in a global bin directory where I can't tell which one goes with which application. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
