[ZO-Coll] [ZOC] 333/ 1 Request "Zope Book 2.6 - Tal - python modules example doesn't work"

Collector: NEW Zope.org (the ... zope-web at zope.org
Mon May 3 15:18:56 EDT 2004


Issue #333 Update (Request) "Zope Book 2.6 - Tal - python modules example doesn't work"
 Status Pending, content/bug medium
To followup, visit:
  http://zope.org/Collectors/ZopeOrg/333

==============================================================
= Request - Entry #1 by jmeile on May 3, 2004 3:18 pm


Uploaded:  "FooProduct.tar.gz"
 - http://zope.org/Collectors/ZopeOrg/333/FooProduct.tar.gz/view
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
==============================================================




More information about the Zopeorg-collector mailing list