Update of /cvsroot/warp-framework/warp_framework
In directory usw-pr-cvs1:/tmp/cvs-serv27593
Modified Files:
Tag: interra
property_manager.py
Log Message:
Added autopdate_id flag to object to be able to avoid autoupdate functionality (on properties update).
Index: property_manager.py
===================================================================
RCS file: /cvsroot/warp-framework/warp_framework/property_manager.py,v
retrieving revision 1.53.2.3
retrieving revision 1.53.2.4
diff -C2 -r1.53.2.3 -r1.53.2.4
*** property_manager.py 22 Jul 2002 07:56:16 -0000 1.53.2.3
--- property_manager.py 6 Aug 2002 23:56:14 -0000 1.53.2.4
***************
*** 146,154 ****
self.after_property_edit({})
self.partial_reindex(())
! try:
! self.get_parent_node().update_object_id(self)
! except AttributeError: pass # get_parent_node() returned object beyond
! # scope of warp_framework and does not have
! # update_object_id()
# FIXME, only testing
self.notify_change(self)
--- 146,155 ----
self.after_property_edit({})
self.partial_reindex(())
! if getattr(self, 'autoupdate_id', 1): # by default ids are autogenerated
! try:
! self.get_parent_node().update_object_id(self)
! except AttributeError: pass # get_parent_node() returned object beyond
! # scope of warp_framework and does not have
! # update_object_id()
# FIXME, only testing
self.notify_change(self)
|