[Zope] Permissions problem with 2.5.1b1
Tim Wilson
wilson@isis.visi.com
Thu, 14 Mar 2002 16:30:02 -0600 (CST)
Hi everyone,
I just upgraded to Zope 2.5.1b1 from 2.3.3 today and the following DTML
is now producing a permissions problem that is causing the browser to
ask for my Manager password.
The following is a DTML Method that queries a TinyTable to retrieve some
events which are filtered according to their dates. The events are
printed only if their date is in the future (visit_date.isFuture()), but
within 30 days (visit_date-ZopeTime() < 30).
Here's the error and traceback:
Error Type: Unauthorized
Error Value: You are not allowed to access isFuture in this context
Traceback (innermost last):
File /home/wilson/zope/2.5.1b1/lib/python/ZPublisher/Publish.py, line
150, in publish_module
File /home/wilson/zope/2.5.1b1/lib/python/ZPublisher/Publish.py, line
114, in publish
File /home/wilson/zope/2.5.1b1/lib/python/Zope/__init__.py, line 159,
in zpublisher_exception_hook
(Object: guidance)
File /home/wilson/zope/2.5.1b1/lib/python/ZPublisher/Publish.py, line
98, in publish
File /home/wilson/zope/2.5.1b1/lib/python/ZPublisher/mapply.py, line
88, in mapply
(Object: college_visits)
File /home/wilson/zope/2.5.1b1/lib/python/ZPublisher/Publish.py, line
39, in call_object
(Object: college_visits)
File /home/wilson/zope/2.5.1b1/lib/python/OFS/DTMLMethod.py, line 127,
in __call__
(Object: college_visits)
File
/home/wilson/zope/2.5.1b1/lib/python/DocumentTemplate/DT_String.py, line
473, in __call__
(Object: college_visits)
File /home/wilson/zope/2.5.1b1/lib/python/DocumentTemplate/DT_In.py,
line 695, in renderwob
(Object: college_table)
File /home/wilson/zope/2.5.1b1/lib/python/DocumentTemplate/DT_Util.py,
line 159, in eval
(Object: visit_date.isFuture() and visit_date-ZopeTime() < 30)
(Info: visit_date)
File <string>, line 2, in f
Unauthorized: (see above)
Thanks for any advice you can give.
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.org | http://www.zope.com
W. St. Paul, MN | | http://slashdot.org
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com