how to call dtml method from python product and pass it namespace
Hello. From inside a python product I need to call a dtml method. When I call it, that dtml method can't find anything else in the folder. So - how can I pass it _ or whatever is needs so that it can find everything else in the folder? I tried passing it _, and passing it _=self, and various other things to no avail. Thanks, ^Roman
From Steve's earlier post:
<dtml-var "menuMoneda_dtml(_.None, _, sufijo='Arriendo')">
This is the DTML way to do it.... I would guess to do the above from python would be: menuMoneda_dtml(_.None, _, sufijo='Arriendo') If it doesn't, can anyone else help? I need to do this soon as well :S cheers, Chris
on Thursday, April 27, 2000 Chris Withers wrote :
From Steve's earlier post:
<dtml-var "menuMoneda_dtml(_.None, _, sufijo='Arriendo')">
CW> This is the DTML way to do it.... CW> I would guess to do the above from python would be: CW> menuMoneda_dtml(_.None, _, sufijo='Arriendo') CW> If it doesn't, can anyone else help? I need to do this soon as well :S CW> cheers, CW> Chris I've had problems with this recently too, but never figured out what to do. Didn't get a lot of help from the list either. - passed in _.None, _ , but it still cannot 'see' other objects in the site.. -- Geir Bækholt Hansen web-developer/designer geirh@funcom.com http://www.funcom.com
Roman Milner wrote:
Hello. From inside a python product I need to call a dtml method. When I call it, that dtml method can't find anything else in the folder. So - how can I pass it _ or whatever is needs so that it can find everything else in the folder? I tried passing it _, and passing it _=self, and various other things to no avail.
aDTMLMethod(None, REQUEST) or more likely in your case: aDTMLMethod(self, REQUEST) What's the difference? Not sure. -- Itamar S.T. itamars@ibm.net
participants (4)
-
Chris Withers -
Geir B�kholt Hansen -
Itamar Shtull-Trauring -
Roman Milner