[CMF-checkins] CVS: CMF - Document.py:1.20

Jeffrey Shell jeffrey@digicool.com
Fri, 1 Jun 2001 11:07:38 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault

Modified Files:
	Document.py 
Log Message:
Added a check in Document#_safety_belt_update() to see if the object
has a safety belt set (ie - the object isn't freshly created).



--- Updated File Document.py in package CMF --
--- Document.py	2001/06/01 00:21:28	1.19
+++ Document.py	2001/06/01 15:07:38	1.20
@@ -294,6 +294,8 @@
 
         if (# we have a safety belt value:
             this_belt
+            # and the current object has a safety belt (ie - not freshly made)
+            and (self._safety_belt is not None)
             # and the safety belt doesn't match the current one:
             and (this_belt != self._safety_belt)
             # and safety belt and user don't match last safety belt and user: