[Zope] Permissions problem with 2.5.1b1

Kees de Brabander cj.de.brabander@hccnet.nl
Fri, 15 Mar 2002 10:03:31 +0100


You'll have to set the permission to 'Query Tiny Table data' for anonymous
or whatever role you are using to access the tiny table.
cb
----- Original Message -----
From: "Tim Wilson" <wilson@isis.visi.com>
To: "Zope listserv" <zope@zope.org>
Sent: Thursday, March 14, 2002 11:30 PM
Subject: [Zope] Permissions problem with 2.5.1b1


> 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() &lt; 30)
>     (Info: visit_date)
>   File &lt;string&gt;, 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
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>