[Zope-CMF] script crashing zope

Dan Keshet dkesh@channel1.com
Thu, 20 Dec 2001 21:37:45 -0500 (EST)


I've written an external python script to convert plain old html documents
(stored as DTML documents) to CMF Documents.  It works on small documents,
but anything moderately large and it crashes the server.  I'm not quite
sure what moderately large is b/c I wasn't keen to keep crashing the
server, but it's between 1709 bytes and 5094 bytes.

So...

1) Is this a general Zope bug (well, clearly it shouldn't be crashing) or
a CMF-specific bug?

2) Does anybody have a workaround or a script that they've written for the
same purpose?

Thanks,

Dan


Setup: CMF1.1, Zope 2.4.3, python 2.1.1, freebsd4.1:

---Begin script----
def convert(self):
        from Products.CMFDefault.Document import addDocument

        text = self.document_src()
        title = self.title_or_id()
        id = self.getId()
        self.manage_renameObject(id, id + '.dtml')
        self.manage_addProduct['CMFDefault'].addDocument( id, title, '',
"html", text)
---- End Script----