[Zope] access product code from ZPT

Dieter Maurer dieter@handshake.de
Mon, 17 Feb 2003 00:11:42 +0100


Florian Konnertz wrote at 2003-2-15 21:24 +0100:
 > What i want to do:
 > I used to have the backlinks on the wikipage itself, in DTML i had the 
 > code in the DTMLmethod but now i want to use the existing function 
 > backlinksFor(self,page) from the ZWiki product code.
 > 
 > 
 > My aproach was to define the module (in wikipage.pt):
 > 
 > <span tal:define="pps python:modules['Products.ZWiki.ZWikiPage']">
 > </span>
 > 
 > 
 > When i call the wikipage i'm asked for username/password, i enter my 
 > manager account but it asks again and again. Why?

I expect because "Products.ZWiki.ZWikiPage" is not allowed to be imported.

Read the PythonScripts "README" and allow it.


Dieter