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() < 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
Tim Wilson wrote:
Error Type: Unauthorized Error Value: You are not allowed to access isFuture in this context
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)
Well this shure is fishy. Have you tried the isFuture() on another DateTime instance in the same context? regards Max M
On Fri, 15 Mar 2002, Max M wrote:
Error Type: Unauthorized Error Value: You are not allowed to access isFuture in this context
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)
Well this shure is fishy. Have you tried the isFuture() on another DateTime instance in the same context?
There are other DateTime instances rendered in the same folder and those work fine with the isFuture() method. Odd. It's not a permissions problem with the TinyTable because it was working perfectly before the upgrade to 2.5.1b1 (from 2.3.3). -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
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() < 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
_______________________________________________ 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 )
Hi. I had some issues with ownership and this message. Try taking the ownership of the objects to avoid conflicts between different userfolders / emergency user. Just a guess, but tell me if it has been the right bet ... * Tim Wilson <wilson@isis.visi.com> [020314 22:40]:
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).
Error Type: Unauthorized Error Value: You are not allowed to access isFuture in this context
Greetings Christian -- Christian Theune - ct@gocept.com gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981 reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])
participants (4)
-
Christian Theune -
Kees de Brabander -
Max M -
Tim Wilson