"Rayon" <evosw...@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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to