Hi,
I am trying to figure out what would be the best way to write batch (command line) tools in pylons.

Basically, what I need is a replica of the configuration that my live site uses, but instead of controllers getting the requests, its a command line tool. Everything else (globals, caching, database, etc) should be the same.

I looked at the command line utilities section in pylons documentation, but I can't seem to figure out how to everything loaded properly. loadapp() gives me an instance of the app that can be passed on to a wsgi server, but that's not what I was looking for.

Another option will be to just run a paster serve and write a controller, but that doesn't seem to be the right way to do things :(.

What's the best approach to do this?

Thanks,
DD.

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