REQUEST, RESPONSE & Acquisition
Hi, I'm building an external method which looks at its parent folders list of DTML documents and publishes it. At first, I thought I could just call the document template, something like: function return(self): toReturn = self.index_html return toReturn(toReturn) This works fine as long as the document has no variables of its own, but if, say default_html_header is referenced, the call barfs. As far as I can tell, the document has acquired nothing. I've been poking around the source code, and I'm really not sure what's going on. Does anyone have a helpful suggestion?
Michael Collins wrote:
Hi, I'm building an external method which looks at its parent folders list of DTML documents and publishes it. At first, I thought I could just call the document template, something like:
function return(self): toReturn = self.index_html return toReturn(toReturn)
you want: def theFunction(self, REQUEST): toReturn = self.index_html return toReturn(self, REQUEST) Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Jim Fulton -
Michael Collins