Re: [Modeling-users] usedForLocking
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-09-25 18:44:38
|
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). >=20 > What was this thing for? Funny that you're asking this now that we discuss optimistic locking ;) 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). Cheers, -- S=E9bastien. |