I have a convenience class for my commandline scripts: from pyramid.paster import bootstrap class IntegratedApi(): env = None bootstrapped = None def __init__(self): self.env = bootstrap('../../../web-pylons/app/production.ini') def finish(self): self.env['closer']()
is there a better way to generate new 'requests' under the commandline environment ? each call to `bootstrap()` seems to generate an overhead of about 1.3s on my dev machine ( .9 on production ). i need to somehow make new 'requests' more on par with the normal overhead ( which is so small its virtually non-existant ). -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.