[Tutor] problem with cherrypy
Alan Gauld
alan.gauld at btinternet.com
Mon May 24 19:40:59 CEST 2010
"Rayon" <evosweet at hotmail.com> wrote
>I am trying to get and set some session variables in ram with
>cherrypy
>
> Here is my code:
>
> import cherrypy
> #cherry.session.get('user')
> #cherry.session.get('password')
You import cherrypy but you use cherry?
Should it maybe be:
cherrypy.session?
or maybe even
cherrypy.cherry.session?
> AttributeError: 'module' object has no attribute 'session'
OTOH the error message seems to suggest it recognises
cherry as a module. Which doesn't seem consistent
with your code?
Puzzled and curious,
Alan G.
More information about the Tutor
mailing list