[Zope] unauthorized tal repeat by class method

Bernd Dorn zope-mailinglist at mopa.at
Tue Sep 16 05:47:45 EDT 2003


hello all

I'm currently migrating some of my dtml stuff of my python product to 
page templates and have the following odd issue.

i pass an instance of a none-zopish class to a page template as keyword.

in the page template i can access the instance, but cannot invoke a 
method on it which returns me a sequence of other classes

here the snipped of my zpt file:

<div tal:repeat="activity python:options['wf_activity'].getActions()">


traceback snippet:

     *  Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
       __traceback_info__: options['wf_activity'].getActions()
     * Module Python expression "options['wf_activity'].getActions()", 
line 1, in <expression>

Unauthorized: You are not allowed to access 'getActions' in this context 
(Also, an error occurred while attempting to render the standard error 
message.)

end:

in dtml this works without problem:

dtml snippet:

     <dtml-with wf_activity>
   <dtml-in getActions>
     ...
	
	...

     </dtml-in>
     </dtml-with>


my setup:

  Zope Version
	
(Zope 2.7.0-a1, python 2.2.3, win32)
Python Version
	
2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)]
System Platform
	
win32

end:


tia, bernd










More information about the Zope mailing list