[Zodb-checkins] CVS: Zope3/lib/python/Persistence - IPersistent.py:1.1.4.8

Jim Fulton jim@zope.com
Tue, 5 Mar 2002 16:43:18 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	IPersistent.py 
Log Message:
Hold on to your butts!

Major refactoring of Interface package to clean up the interfaces and
module structure.

Note especially, to verify interface implementstions,
use verifyObject or verifyClass from the Interface.Verify module:

from Interface.Verify import verifyClass

verifyClass(ISomeInterface, SomeClass)



=== Zope3/lib/python/Persistence/IPersistent.py 1.1.4.7 => 1.1.4.8 ===
 # Hack to overcome absense of Interface package
 try:
-    from Interface import Interface, Attribute
+    from Interface import Interface
+    from Interface.Attribute import Attribute
 except ImportError:
     class Interface: pass
     def Attribute(*args): return args