Routes - url_quote options

2008-07-19 Thread andres
t way to change the default url quoting behavior of the routes package? Is there a way to turn it off entirely? What is the most common way to implement "hyphen-encoding" of urls rather than "plus-encoding"? Thanks, Andres --~--~-~--~~~---~--~~

Beaker bug

2009-02-12 Thread andres
fied action does work though: def end_session(self): session.save() session.delete() return 'session deleted' Am I not understanding something about the way sessions work? Why you have to save() before calling delete()? Is this a bug? Thanks, Andres --~--~-~--~~--

Re: Beaker bug

2009-02-14 Thread andres
Yep - that fixes the problem. -Andres On Feb 13, 2:35 pm, Ben Bangert wrote: > On Feb 12, 2009, at 12:11 PM, andres wrote: > > > Am I not understanding something about the way sessions work? Why you > > have to save() before calling delete()? Is this a bug? > > Defin

StatusCodeRedirect original_request

2009-02-17 Thread andres
Hi All, I'm using Pylons 0.9.7 StatusCodeRedirect middleware to display custom error documents and I can't find the original request in the environment. Does anybody know how I can access the original request after a status code redirect? Thank

access to exceptions

2009-02-19 Thread andres
Hi All, I have a homegrown authentication system which is similar to AuthKit and I want to pass arguments to the AuthMiddleware using arguments to the exceptions. How can I access the exception that triggered the ExceptionHandler? I hope my question makes sense! Thanks, Andres

Exception Handling

2009-08-28 Thread andres
ng instead. That works fine, but I'd like to access the original exception to extract error messages and other metadata. Thanks, Andres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" gro

Architecture Question

2009-08-28 Thread andres
best place to put the rate limiter? As far as I can tell, the possible candidates are: in config/middleware.py in lib.base.BaseController.__before__ in lib.base.BaseController.__call__ Any architecture advice would be very much appreciated! Thanks, A

Architecture Question

2009-08-28 Thread andres
best place to put the rate limiter? As far as I can tell, the possible candidates are: in config/middleware.py in lib.base.BaseController.__before__ in lib.base.BaseController.__call__ Any architecture advice would be very much appreciated! Thanks, A

Re: Architecture Question

2009-08-31 Thread andres
e. I've had problems handling exceptions in middleware though. What's the best way to get the last exception raised? What's the difference between __call__ and __before__? Thanks, Andres --~--~-~--~~~---~--~~ You received this message because you

Re: Architecture Question

2009-08-31 Thread andres
Awesome! Thanks so much for your help. -Andres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe

slow import

2009-12-06 Thread andres
modules faster to import? Thanks, Andres -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr..

Pylons 1.0rc1 runtime configuration

2010-03-26 Thread andres
er of these things though, I wanted to make sure I wasn't missing something. How does Pylons recommend accessing the runtime configuration? Thanks, Andres -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send emai

Re: Pylons 1.0rc1 runtime configuration

2010-03-26 Thread andres
ull application requests? -Andres On Mar 26, 2:31 pm, Mike Orr wrote: > On Fri, Mar 26, 2010 at 9:03 AM, andres wrote: > > Hi, > > > I'm in the process of upgrading to Pylons 1.0 and I have some > > questions about runtime configuration. > > > According

Re: Pylons 1.0rc1 runtime configuration

2010-03-26 Thread andres
ional $ nosetest test_proxy.py >>> >>> SetupCommand('setup-app').run([pylons.test.pylonsapp.config['__file__']]) >>> AttributeError: 'NoneType' object has no attribute 'config' Let me know if there's anything I can do to

Re: Pylons 1.0rc1 runtime configuration

2010-03-27 Thread andres
mykey') Regarding nosetests, my coworker had a problem running tests individually as well. I'll look into it some more and post a message to pylons-discuss if I'm still having problems. Incidentally, what version of nostests are you using? I'm using 0.11.3. -Andres On Mar 26, 1

Re: Pylons 1.0rc1 runtime configuration

2010-03-28 Thread andres
documentation and publish a recommendation for how to enable runtime configuration outside the bounds of a request. -Andres On Mar 27, 5:33 pm, Ben Bangert wrote: > On Mar 26, 2010, at 9:03 AM, andres wrote: > > > > > > > This works fine within the context of a WSGI app in

app.get()

2010-10-14 Thread andres
val1')). Is that mechanism available within the pylons environment? Thanks! -Andres -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group,

Batch process multiple app requests

2010-10-22 Thread andres
): responses = [self.app.get(resource_url) for resource_url in resource_urls] return json.dumps(responses) Is there a way to access the app instance from within the app itself? Or, is there a better way to pass a url argument to the app from inside the app? Thanks, Andres -- You

Re: Batch process multiple app requests

2010-10-22 Thread andres
Cool solution! Is there a way to access the app outside of middleware? Would it make sense to add it to the environment so I can access it from within a controller? -Andres On Oct 22, 10:09 am, Gael Pasgrimaud wrote: > On Fri, Oct 22, 2010 at 3:47 PM, andres wrote: > > Hi, > >