Friday, October 7, 2011

can't use django session object

Hi,
I'm having trouble using django sessions objects.

so I set the object in one view:
request.session['user_cred']=cred #where cred is a GlobusCredential

I access the object in another view:
a_cred=request.session['user_cred']
# but if I use a_cred like
a_id=a_cred.getIdentity()

I get this error

Django Version: 1.2.5
Exception Type: AttributeError
Exception Value: 'str' object has no attribute 'META'

I'm using jython 2.5.2 and django 1.2

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment