Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv14941
Modified Files:
EditingContext.py
Log Message:
Slight perf. enhancement in insertObject(): most of the time deleted objects are pending, because most of the time processRecentChanges() is not run indepently from saveChanges()
Index: EditingContext.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/EditingContext.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** EditingContext.py 18 Jul 2003 11:32:52 -0000 1.28
--- EditingContext.py 18 Jul 2003 13:43:39 -0000 1.29
***************
*** 898,903 ****
else:
# Already registered: only deleted objects are allowed to re-insert
! if not gID in self._deletedObjects and \
! not gID in self._pendingDeletedObjects:
if self.propagatesInsertionForRelatedObjects():
import warnings
--- 898,903 ----
else:
# Already registered: only deleted objects are allowed to re-insert
! if not gID in self._pendingDeletedObjects and \
! not gID in self._deletedObjects:
if self.propagatesInsertionForRelatedObjects():
import warnings
|