<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#fffbf0>
<DIV>I have problem with below code:<BR>------A.py------<BR>def 
aaa(self):<BR>&nbsp;&nbsp;&nbsp; " "<BR>&nbsp;&nbsp;&nbsp; # do 
something<BR>class A:<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
manage_AAAForm2=DTMLFile('dtml\manage_AAAForm2',globals())<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
def aa(self, sub):<BR>&nbsp;&nbsp;&nbsp;&nbsp; " 
"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
sub=='edit':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
return self.manage_AAAForm2(self,self.REQUEST)<BR><BR>-----file 
manage_AAAForm2.dtml---- (this was not correct post&nbsp;in prev 
message)<BR>&lt;form name="form" action="aaa"&gt;<BR>&nbsp; &lt;input 
type="text" name="Name" value=&lt;dtml-var Name&gt;&gt;<BR>&nbsp; &lt;input 
type="submit" name=sub value="edit"&gt;<BR>&lt;/form&gt;<BR><BR>Zope 
write:<BR>Site Error<BR>An error was encountered while publishing this resource. 
<BR>Debugging Notice<BR>Zope has encountered a problem publishing your object. 
<BR>Cannot locate object at: <A 
href="http://localhost:8080/min/1/aaa">http://localhost:8080/min/1/aaa</A><BR><BR>Zope 
cannot find function aaa() from A.py.<BR><BR>How can I call python functhion in 
dtml-file?<BR><BR>Regard,<BR>Serg</DIV></BODY></HTML>