X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/2e41b532233f96f4bc43eedbe5bcf1929d823a6c..ba3300649023e250c9279f7833a5dd08a19c58a5:/utils.py?ds=inline 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