[Zope-dev] calling DTMLMethods from python

König Alexander koenig@cdc-group.com
Tue, 15 Feb 2000 18:26:05 +0100


I need to call a DTMLMethod that is contained in the ZODB from python, as a
template to display the calling object.
Tried it that way:

 def display_template(self):
    	root_folder=self.get_root() # returns a folder object that contains
templates/template_set/meldung
    	return root_folder.templates.template_set.meldung(self)
    	
Calling display_template returns "access denied" followed by a login-box.
the superuser login isn't accepted, just returns access denied again.

Using mapping instead of specifiing the client-object (self) works for
attributes, but not for contained objects.

Is there another posibility to call DTMLMethod-objects from python? 

Alex