[Zope] addDTMLDocument Help!

Brian Brown Brian.Brown@smawins.com
Wed, 4 Aug 1999 11:53:36 -0600


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

One clarification - When I post the form, I get no errors; when I try to
look at the new DTML Document from the management interface, I get this:

Sorry, an error occurred.

Traceback (innermost last):
  File /home/Zope/lib/python/ZPublisher/Publish.py, line 255, in
publish_module
  File /home/Zope/lib/python/ZPublisher/Publish.py, line 161, in publish
  File /home/Zope/lib/python/ZPublisher/mapply.py, line 154, in mapply
    (Object: manage)
  File /home/Zope/lib/python/ZPublisher/Publish.py, line 98, in call_object

    (Object: manage)
  File /home/Zope-1.10.2-src/lib/python/Globals.py, line 228, in __call__
    (Object: manage)
  File /home/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_String.py, line
513, in __call__
    (Object: manage)
  File /home/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_HTML.py, line
217, in __str__
    (Object: where)
  File /home/Zope-1.10.2-src/lib/python/DocumentTemplate/DT_HTML.py, line
211, in quotedHTML
    (Object: where)
TypeError: argument 1: expected read-only character buffer,
ExplicitAcquirerWrapper found


-Brian