Again, this problem is making me mad :) This is a simple TTW PageTemplate I'm using: <html> <body> <ul tal:repeat="dba here/SQLConnectionIDs"> <li tal:content="dba"> placeholder </li> </ul> <body> </html> This works without any problem, returning a list of tuples. The same template in a FS based product raises a site error: Unauthorized: You are not allowed to access 'SQLConnectionIDs' in this context (Also, an error occurred while attempting to render the standard error message.) that's not even logged. A very similar DTML file on the FS, that cycles through SQLConnectionIds, works perfectly. This is Zope 2.7 on Windows. Is this a Zope bug ? TIA, ngw --------------------------------- Yahoo! Messenger: chiamate gratuite in tutto il mondo
Nicholas Wieland wrote at 2005-8-22 11:47 +0200:
Again, this problem is making me mad :) This is a simple TTW PageTemplate I'm using:
<html> <body> <ul tal:repeat="dba here/SQLConnectionIDs"> <li tal:content="dba"> placeholder </li> </ul> <body> </html>
This works without any problem, returning a list of tuples. The same template in a FS based product raises a site error:
Unauthorized: You are not allowed to access 'SQLConnectionIDs' in this context (Also, an error occurred while attempting to render the standard error message.)
"SQLConnectionIDs" does not have an explicit security declaration. Therefore, it is protected by the folder's "object permission". Looks like the visitor does not have this permission. "VerboseSecurity" may help you to analyse such problemes easier... -- Dieter
I'm working as admin, sorry for not mentioning it. The same PageTemplate in the same folder, but not inside the product, works like a charm, same as SQLConnectionIDs inside the product, but as DTMLFile. ngw --------------------------------- Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
participants (2)
-
Dieter Maurer -
Nicholas Wieland