[Zope] Reusing the global namespace of a DTMLFile from a Python method...

Johan Carlsson johanc at easypublisher.com
Mon Feb 23 14:34:37 EST 2004


Is there anyway to access the global namespacem, keyword arguments 
passed to a DTMLFile when defined in a class, from a python method
when the method is called from the DTML File, like this:


class A(SomeBaseClass):

	b=DTMLFile('dtml/manage_this', globals(), my_variable=1)

	def c(self, client=None, REQUEST=None):
		"""DocString"""
		<get my_variable>

dtml/manage_this:
	<dtml-var std_header>
	<dtml-var c>
	<dtml-var std_footer>



-- 
Johan Carlsson          Tel: + 46 8 31 24 94
Colliberty              Mob: + 46 70 558 25 24
Torsgatan 72            Email: johanc at easypublisher.com
SE-113 37 STOCKHOLM     Skype: colliberty





More information about the Zope mailing list