Hi,

in my project Pyramid project, I would like some commands to :

* setup my database
* inject demo datas
* update xapian indexation
* …

to execute this command, I need to use a ".ini" configuration file.

What is the better solution to do that ?

1. use something like "$ paster inject-demo-data development.ini" command ? how can I develop my "inject-demo-data" (use this information http://pythonpaste.org/script/developer.html#what-do-commands-look-like ?) 2. use setup.py console_scripts entry points ? How can I load ".ini" configuration file in my script

What is the better and more "standard" solution ? 1. or 2. ?

Thanks for your help.

Regards,
Stephane
--
Stéphane Klein <[email protected]>
blog: http://stephane-klein.info
Twitter: http://twitter.com/klein_stephane
pro: http://www.is-webdesign.com

--
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.

Reply via email to