projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abandon de thumb_height et thumb_width au profit de thumb_size.
[Plinn.git]
/
utils.py
diff --git
a/utils.py
b/utils.py
index
aa91c8d
..
6261982
100755
(executable)
--- a/
utils.py
+++ b/
utils.py
@@
-165,7
+165,11
@@
def _checkMemberPermission(userid, permission, obj, StringType = type('')):
return 0
def getCPInfo(self) :
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
except: return None
return cp