You are not logged in Log in Join
You are here: Home » Collectors » NEW Zope.org (the website) » Zope Book 2.6 - Tal - python modules example doesn't work » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Collectors/ZopeOrg/333
Title resource name Zope Book 2.6 - Tal - python modules example doesn't work
Description resource summary 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
Creator resource creator jmeile
Date default date 2004-05-03 15:18:56
Format resource format text/html
Type resource type Collector Issue
Subject resource keywords content, bug, medium
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2004-05-03 15:18:51
ModificationDate date resource last modified 2004-05-03 15:18:56
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati