Huy Do wrote:
Hi,
I'm getting this error when trying to access the session in pylons 0.92.
Any ideas ?
Thanks
File /home/huy/apps/ktrack/ktrack/menu.py, line 32, in menu_client
if session.has_key['client_id']:
TypeError: unsubscriptable object
if session.has_key('client_id'):
On Aug 27, 2006, at 1:58 PM, Graham Higgins wrote:
I'd appreciate some clarification with reference to the keyword value
type to be supplied to pylons.rest.dispatch_on - is it a string or a
function?
Pylons doc http://pylonshq.com/docs/0.9.1/module-
pylons.decorators.rest.html states:
has_key will be removed in Python3000, use
if 'client_id' in session:
instead
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to
The WebHelpers links on pylonshq.com seem to have a problem :-)
e.g. on the main HQ page http://pylonshq.com/WebHelpers/module-index.html = 404
Robert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Ah yes, just fixed that. I was switching the configuration of the site
over to mod_python. Got a few notes on the mod_python docs as well,
I'll be making a complete Deploying with mod_python based off the
wiki docs for the core docs tonight hopefully.
Thanks for the catch. :)
- Ben
Ben Bangert wrote:
On Aug 28, 2006, at 3:13 PM, Damjan wrote:
has_key will be removed in Python3000, use
if 'client_id' in session:
instead
Also useful to know, this syntax is faster in Python 2.4 then using
has_key.
Thanks for the tips guys. I've done a global search and replace
yi huang wrote:
It seems due to the white space in the directory name program files
Got that bit. I made a patch against paste/script/serve.py for anyone
else on win32:
http://prim8.net/files/pastescript-serve-reload-win32.diff
Tim.
--~--~-~--~~~---~--~~
Hi,
Quick question: How can I validate arguments sent through a GET
(similar to the validate
decorator in TurboGears)?
In my controller I have this method:
@validate(validators={count: validators.Int()})
def getCount(self,count):
return Response('b%d/b' % count)
however when