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

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():
                self.OnCreateItem(unscrolledPosition)

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.

Andi..
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to