|
conflict resolution for PersistentList: msg#00098web.zope.zodb
Hi, after finding that my ConflictError was suppressed by a bad designed exception handler, I now want to implement a _p_resolveConflict method. I implemented it, but can't work with the passed state. It looks like this: >>> print oldState {'items': PR(1079757676 ('\x00\x00\x00\x00\x00\x00\x00\x02', <class 'persistent.list.PersistentList'>)), 'name': 'father'} I want to iterate over the items-lists and merge them properly. However, I can't access the items as list - its not iterable. The examples I found on the net only deal witht simple integer data fields. What do I have to do to access the state as real objects? Is there a deserialization neccessary? Regards, Diez _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@xxxxxxxx http://mail.zope.org/mailman/listinfo/zodb-dev |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: concurrent list modification problems: 00098, Dieter Maurer |
|---|---|
| Next by Date: | Database truncated: 00098, Ramon Aseniero |
| Previous by Thread: | DirectoryStorage 1.1.9i: 00098, Toby Dickenson |
| Next by Thread: | Re: conflict resolution for PersistentList: 00098, Chris McDonough |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |