[Zope-CMF] script crashing zope

Chris McDonough chrism@zope.com
Thu, 20 Dec 2001 23:37:33 -0500


Hi Dan,

What Zope version are you using?  There are a set of known bugs that are
about to be squashed in Zope 2.5 (and *maybe* in another bugfix release of
2.4) that could be causing this, but it'd be nice to be able to replicate
your problem to be sure.

- C

----- Original Message -----
From: "Dan Keshet" <dkesh@channel1.com>
To: <zope-cmf@zope.org>
Sent: Thursday, December 20, 2001 9:37 PM
Subject: [Zope-CMF] script crashing zope


> 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----
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests
>