[Chandler-dev] chandlerdb updated (0.6-94)

Andi Vajda vajda at osafoundation.org
Mon Apr 9 17:59:30 PDT 2007

After your next 'svn update' you need to get the latest chandlerdb version
by running in 'chandler':
      make chandlerdb  - OR -

This update makes it possible to defer commit() calls until a block of code 
has completed. For example, in CollectionCanvas.py, I'm using this to defer 
the commit() call made by CreateEmptyEvent() until the entire double click
processing completed:

         elif self.blockItem.CanAdd():
             with self.blockItem.itsView.commitDeferred():

This block of code, part of CollectionCanvas._handleDoubleClick() means to 
defer all commit() calls that happen inside it until it completes. Then, if 
any commit() calls happened, the last one is applied.


More information about the chandler-dev mailing list