[Checkins] SVN: z3c.jbot/trunk/z3c/jbot/utility.py There seems to
be a lack of concensus here.
Malthe Borch
mborch at gmail.com
Thu Jul 17 11:17:56 EDT 2008
Log message for revision 88449:
There seems to be a lack of concensus here.
Changed:
U z3c.jbot/trunk/z3c/jbot/utility.py
-=-
Modified: z3c.jbot/trunk/z3c/jbot/utility.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/utility.py 2008-07-17 15:03:12 UTC (rev 88448)
+++ z3c.jbot/trunk/z3c/jbot/utility.py 2008-07-17 15:17:56 UTC (rev 88449)
@@ -20,8 +20,11 @@
# get request by acquisition
site = getSite()
if site is not None:
- return site.REQUEST
-
+ try:
+ return site.request
+ except AttributeError:
+ return site.REQUEST
+
try:
i = zope.security.management.getInteraction()
except zope.security.interfaces.NoInteraction:
More information about the Checkins
mailing list