[Zope-Checkins] CVS: Zope3/lib/python/Persistence - cPersistence.h:1.1.2.3

Jeremy Hylton jeremy@zope.com
Wed, 13 Feb 2002 19:21:55 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv22148

Modified Files:
      Tag: Zope-3x-branch
	cPersistence.h 
Log Message:
Put UPTODATE first in the enum.

This is a bit of a hack to deal with the fact that I don't have an
__init__ defined for Persistent.  When the object is allocated, we
should guarantee that it po_state is set to UPTODATE.

XXX It should really be in the "unsaved" state which isn't explicitly
defined.


=== Zope3/lib/python/Persistence/cPersistence.h 1.1.2.2 => 1.1.2.3 ===
 
-enum PyPersist_State { GHOST, UPTODATE, CHANGED, STICKY };
+enum PyPersist_State { UPTODATE, CHANGED, STICKY, GHOST };
 
 #define PyPersist_HEAD \
     PyObject_HEAD \