[Zope-dev] updating homebrew extension of structured text to standard

Florent Guillaume fg@nuxeo.com
Mon, 15 Jul 2002 22:21:17 +0000 (UTC)


Jochen Knuth  <jok-zope@ipro.de> wrote:
> Hi,
> 
> i have a ZClass with a property which is renderd as structured text. 
> Because i designed this ZClass before there was a standard for including 
> images, i made my own extension of structured text formating.
> Short: I used __imageobject__ as markup for the image.
> 
> Now i want to update all my zclass instances to the new syntax (while 
> upgrading to Zope 2.5.1).
> 
> I have a Python Script listKBE, which call an External Method updateKBE. 
> If i use it with a path with only a few ZClass instances (about 10) it 
> works (slowly). If i use it with a path with about 550 instances it 
> crashes or is extreme slow.
> Anyone to suggest a faster method?
> 
> Thank you,
> Jochen

Call get_transaction().commit() every 20 or so objects ?

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com