Is it possible to steal the session in Pylons?

2008-02-17 Thread Leo
So, subj. If someone steals the session id from cookies, will he be able to use it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to

Re: [Paste] Beaker broken with WebOb's HTTPFound

2008-02-17 Thread Ian Bicking
This should be fixed in Beaker I think. Ben? Nick Murphy wrote: Hi All, I stumbled upon a bug in Beaker when raising webob.exc.HTTPFound. The offending line in Beaker is middleware.py:155. It's caused because the header attribute of a WebOb WSGIHTTPException is a MultiDict (by way of

Re: [Paste] Beaker broken with WebOb's HTTPFound

2008-02-17 Thread Ben Bangert
On Feb 17, 2008, at 9:19 AM, Ian Bicking wrote: This should be fixed in Beaker I think. Ben? Nick Murphy wrote: Hi All, I stumbled upon a bug in Beaker when raising webob.exc.HTTPFound. The offending line in Beaker is middleware.py:155. It's caused because the header attribute of a

Re: [Paste] Beaker broken with WebOb's HTTPFound

2008-02-17 Thread Ian Bicking
Ben Bangert wrote: Alternatively, I could remove that entirely, and have the (fairly reasonable) expectation that Beaker shouldn't be responsible for messing with app exceptions, and the HTTPFound exception should've been caught earlier and turned into a proper WSGI response... This

pylons function argument passing to controller actions

2008-02-17 Thread SamDonaldson
Hello, My pylons actions are setup such that a decorator passes in the *args, **kw request params coming from the user. The problem is when spurious args are passed in. I get an AttributeError exception since the signature of these actions don't take some of those arguments. How do I make is

Hint: In case you are looking for button_to_remote

2008-02-17 Thread Eric Ongerth
This held up my pursuit of AJAX for a few frustrating hours. Nobody's fault but mine; however, I'm posting about it in case the following can be useful in anyone else's learning process. The following may sound like it's written for idiots if you are well versed in AJAX or at least Javascript.

'Route' object has no attribute 'regmatch'

2008-02-17 Thread Clodoaldo
I'm getting this error following the Routes' integrator page: Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type help, copyright, credits or license for more information. from routes import * m = Mapper()

Re: pylons function argument passing to controller actions

2008-02-17 Thread [EMAIL PROTECTED]
On 17 fév, 20:33, SamDonaldson [EMAIL PROTECTED] wrote: Hello, My pylons actions are setup such that a decorator passes in the *args, **kw request params coming from the user. The problem is when spurious args are passed in. I get an AttributeError exception since the signature of these

Re: pylons function argument passing to controller actions

2008-02-17 Thread SamDonaldson
Hello. Yes, I meant TypeError. I was thinking about this and it seems like this would be pretty expensive. We're basically trying to figure out the signature of the function being called, and then eliminating spurious dictionary key/values from the input to match the signature to avoid the

Nose tests: thread._local has no 'environ' attribute

2008-02-17 Thread Chris
Hi, I've been trying to follow this tutorial http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing But keep getting this error below for every test. Any tips would be much appreciated. Thanks, Chris == ERROR: test_index

Re: pylons function argument passing to controller actions

2008-02-17 Thread Boris
Hi Sam, I ran into this same problem. The easy way to fix it was to use the decorator module to preserve method signature. If you look at some of the builtin decorators with Pylons like @jsonify and @validate, this is how they do it - check pylons/decorators/__init__.py. Here is jsonify with