[ZPatterns] RE: [Zope] ZCatalog: UnKeywordIndex error

Jean Jordaan jean@upfrontsystems.co.za
Wed, 12 Dec 2001 18:22:01 +0200


Hi Steve

> Hmm.. it looks like the actual problem is a ConflictError 
> during commit. What version of ZPatterns? 

[jean@blommie python]$ cat Products/ZPatterns/version.txt 
ZPatterns-0-4-3p2

> Can you do subcommits along the way? 

Uhm, I have no idea .. 

> I'm wondering if TransactionAgents might help here?

I haven't used TransactionAgents yet, so don't know .. 

This isn't a pure ZPatterns app .. the 'license' instance
at issue is a DataSkin, but earlier in the method which 
does the 'manage_changeProperties' call on it, I also do 
this a couple of times, creating some reminders::

    password_reminder_id = container.addReminder()
    container.editReminder(password_reminder_id)

Reminder is a ZClass subclassing XronDTMLMethod. 'addReminder'
calls 'manage_edit', and 'editReminder' calls both 'manage_edit'
and 'manage_changeProperties'. Is it OK to do this multiple 
times in a transaction?

Jean