|
Re: conflict resolution for PersistentList: msg#00112web.zope.zodb
Am Monday 24 May 2004 15:28 schrieb Jeremy Hylton: > On Mon, 2004-05-24 at 09:20, Diez B. Roggisch wrote: > > Having a _p_resolveConflict on UserList didn't help me as it doesn't get > > called, while having one at Parent gets called but contains the pickled > > version as state - nothing I can work with. > > I don't understand why an _p_resolveConflict on a PersistentList > subclass wouldn't be called. (You do mean PersistentList instead of > UserList, right?) That sounds like a bug. > > class MyList(PersistentList): > def _p_resolveConflict(...): > pass # do something yup - from the code-example I sended today: class ConflictPersistentList(PersistentList): def _p_resolveConflict(_, oldState, savedState, newState): print "resolving" print oldState, newState return oldState the example is pretty self-contained, if someone is interested on working with it I'll tar it up. 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: conflict resolution for PersistentList: 00112, Jeremy Hylton |
|---|---|
| Next by Date: | RE: conflict resolution for PersistentList: 00112, Tim Peters |
| Previous by Thread: | Re: conflict resolution for PersistentListi: 00112, Jeremy Hylton |
| Next by Thread: | Re: conflict resolution for PersistentList: 00112, Thomas Guettler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |