Deutsche Zope User Group
Gast 1 Benutzer online
DZUG-News

DTMLDocument.__call__

def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw):
        """Render the document given a client object, REQUEST mapping,
        Response, and key word arguments."""


OffeneFrage: Was sollte im client object enthalten sein? zB. f�r eine ZWikiPage?? Bei meinem derzeitigen ZopeTime? error:

    * Module Products.ZWiki.ZWikiPage?, line 416, in render_stxprelinkdtmlhtml
    * Module OFS.DTMLDocument, line 134, in __call__ 

mu� ich das pr�fen.

Dieter schrieb dazu: 

Again, it looks as if this DTMLDocument" were called without
the necessary positional arguments.

Look at line 416 of ZWikiPage? and check the call there.

DTML objects (usually) require 2 positional arguments
(called "client" and "REQUEST").
"client" is necessary to find basic infrastructure
such as "ZopeTime?".

Im event.log sehe ich unter client den RawText? der ZWikiPage?. Ist doch richtig, oder??