-----Original Message----- From: Brian Brown [mailto:Brian.Brown@smawins.com] Sent: Wednesday, August 04, 1999 1:54 PM To: Michel Pelletier; zope@zope.org Subject: Re: [Zope] addDTMLDocument Help!
Michel Pelletier wrote:
-----Original Message----- From: brian.brown@smawins.com [mailto:brian.brown@smawins.com] Sent: Wednesday, August 04, 1999 1:16 PM To: zope@zope.org Subject: [Zope] addDTMLDocument Help!
<!--#call
"manage_addDTMLDocument(newid,newtitle,content_template)"-->
Without the 'content_template' it works fine. 'content_template' is a DTML method, and it does contain a couple of DTML tags.
What is the error message and traceback you get at this point?
-Michel
Sorry, an error occurred.
Traceback (innermost last): TypeError: argument 1: expected read-only character buffer, ExplicitAcquirerWrapper found
I believe the method you are calling is looking for a string, not another DTML Document/Method object. If it is the case that you want to clone an existing object, just use the clone call. <dtml-with "manage_clone(content_template, newid, REQUEST)"> <dtml-call "manage_changeProperties(title=newtitle)"> </dtml-with> -Michel