X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/36188e56ec33245be4891e7752daec1533fc73dc..543e3e73e8c99ad643adca3522146ae36a7a24a8:/utils.py diff --git a/utils.py b/utils.py index aa91c8d..6261982 100755 --- a/utils.py +++ b/utils.py @@ -165,7 +165,11 @@ def _checkMemberPermission(userid, permission, obj, StringType = type('')): return 0 def getCPInfo(self) : - try: cp = _cb_decode(self.REQUEST['__cp']) + if self.REQUEST.RESPONSE.cookies.has_key('__cp') : + cp = self.REQUEST.RESPONSE.cookies['__cp']['value'] + else : + cp = self.REQUEST.get('__cp') + try: cp = _cb_decode(cp) except: return None return cp