[Zope] Call python functhion in dtml-file

Serg sutni at yandex.ru
Mon Mar 22 10:03:42 EST 2004


I have problem with below code:
------A.py------
def aaa(self):
    " "
    # do something
class A:
     manage_AAAForm2=DTMLFile('dtml\manage_AAAForm2',globals())
     def aa(self, sub):
     " "
           if sub=='edit':
                return self.manage_AAAForm2(self,self.REQUEST)

-----file manage_AAAForm2.dtml---- (this was not correct post in prev message)
<form name="form" action="aaa">
  <input type="text" name="Name" value=<dtml-var Name>>
  <input type="submit" name=sub value="edit">
</form>

Zope write:
Site Error
An error was encountered while publishing this resource. 
Debugging Notice
Zope has encountered a problem publishing your object. 
Cannot locate object at: http://localhost:8080/min/1/aaa

Zope cannot find function aaa() from A.py.

How can I call python functhion in dtml-file?

Regard,
Serg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040322/e31dc806/attachment.html


More information about the Zope mailing list