Re: [Modeling-users] usedForLocking
Status: Abandoned
Brought to you by:
sbigaret
From: Mario R. <ma...@ru...> - 2003-09-27 09:43:12
|
On Jeudi, sep 25, 2003, at 20:43 Europe/Zurich, Sebastien Bigaret wrote: > > Hi Mario, > > Mario Ruggier <ma...@ru...> wrote: >> Hi, little issue with usedForLocking, which is mentioned throughout >> the >> the PyModels Attributes section, each page of which points back to >> 2.3.3 >> for further explanation, but there is never a word about what this is >> for >> (as far as I can see). >> >> What was this thing for? > > Funny that you're asking this now that we discuss optimistic locking ;) Ha, I had not yet caught up with reading all the messages... ;) > This flag indicates which attributes optimistic locking will check when > it is about to save changes: if value for attribute 'lastname' has > changed and 'usedForLocking' is set for tha attr., then under the > optimistic locking policy saveChanges() will raise; if the flag is > unset, the attribute will be silently overriden (for example, you > probably won't mark an object's timestamp as used for locking). OK, thanks. But this paragraph should also be copy'n'pasted into in section "2.3.3 Attribute" of the userguide... mario |