[Zope] Method invocation.

Dieter Maurer dieter@handshake.de
Tue, 6 Mar 2001 21:16:05 +0100 (CET)


Antonio Costa writes:
 > This is a multi-part message in MIME format.
 > --------------0FCBD795A66219CE28E5CE35
 > Content-Type: text/plain; charset=us-ascii
 > Content-Transfer-Encoding: 7bit
Please, do not post MIME messages!
 > ....
 > File SearchObject.py:
 > 
 > manage_addSearchObjectForm = DTMLFile('dtml/searchObjectManage',
 > globals())
 > 
 > def manage_prevAddSearchObject(self):
 >         "Criacao de um objecto SearchObject"
 > 
 > #	print 'Ola' + str(self)     
 > #	global manage_addSearchObjectForm  ##### Desperate attempt #####
 > #	import SearchObject		    ##### Another one #####
 >         return manage_addSearchObjectForm() ##### Error in this line.
 > ....
 > Error Type: AttributeError
 > Error Value: aq_parent
You strip the context from "manage_addSearchObjectForm".

Try:

	return manage_addSearchObjectForm(self)


Dieter