BackTalk to Document The Zope Book (2.6 Edition)/Advanced Page Templates

[email protected] Sun, 02 May 2004 14:22:11 -0400
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx#4-106

---------------

        Modules can be grouped into packages, which are simply a way
        of organizing and naming related modules.  For instance,
        Zope's Python-based Scripts are provided by a collection of
        modules in the "PythonScripts" subpackage of the Zope
        "Products" package.  In particular, the "standard" module in
        this package provides a number of useful formatting functions
        that are standard in the DTML "var" tag.  The full name of
        this module is "Products.PythonScripts.standard", so you could
        get access to it using either of the following statements::

          tal:define="global pps modules/Products/PythonScripts/standard"
          tal:define="global pps python:modules['Products.PythonScripts.standard']"

          % Anonymous User - May 2, 2004 2:20 pm:
           The path sintaxt actually doesn't work. You will receive an Unauthorize exception, even if you implement the
           correct security assertions. With the python one you won't have this problem. The correct sintax would be:
           tal:define="global pps modules/Products/PythonScripts.standard"
           tal:define="global pps python:modules['Products.PythonScripts.standard']"

          % Anonymous User - May 2, 2004 2:22 pm:
           See the following thread:
           http://mail.zope.org/pipermail/zope/2004-May/149553.html

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp