Look at using the 'bootstrap' function now available in Pyramid 1.1. http://docs.pylonsproject.org/projects/pyramid/1.1/narr/commandline.html#writing-a-script http://docs.pylonsproject.org/projects/pyramid/1.1/api/paster.html#pyramid.paster.bootstrap
Pyramid tends to recommend writing your own scripts instead of extending paster, but that's up to you... bootstrap works in both cases (see all of the commands in 'paster.py' for real examples). On Mon, Aug 8, 2011 at 7:57 PM, jerry <[email protected]> wrote: > Hi, > > I was constructing a paster command and couldn't figure out how to get > route_url() to work in the absence of a request. > > Any pointer will be much appreciated! > > Jerry > > -- > 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. > > -- Michael -- 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.
