|
Hi,
the following example:
tal:define="global pps modules/Products/PythonScripts/standard"
Taken from:
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx
doesn't work if you replace it with your own module. You will get an Unauthorized Error even if you define the correct module assertions. ie:
tal:define="FooPackage modules/Products/FooContainer/FooPackage"
the python version:
tal:define="FooPackage python:modules['Products.FooProduct.FooPackage']
will work. If you try this other sintax, which was proposed by Dieter, it will work as well:
tal:define="FooPackage modules/Products.FooProduct"
Attached to this report is a small test case.
Regards,
Josef
File details
File type
application/x-gzip
|