[Zope-CVS] CVS: Products/AdaptableStorage/mapper/interfaces - IMapperEvent.py:1.2 public.py:1.2
Shane Hathaway
shane@zope.com
Thu, 9 Jan 2003 09:34:37 -0500
Update of /cvs-repository/Products/AdaptableStorage/mapper/interfaces
In directory cvs.zope.org:/tmp/cvs-serv19323/mapper/interfaces
Modified Files:
IMapperEvent.py public.py
Log Message:
- Added LoadEvent and StoreEvent, which currently serve only to
clarify the code.
- Added tests of conflict detection.
- Added NoStateFoundError. Classification gateways now raise
NoStateFoundError at the right times so it's possible to detect
attempts to overwrite state with new objects
- Made it easier for a SQL gateway to use multiple tables by adding a
setupTables() method to SQLGatewayBase
- Made FieldSchema.addFieldType public.
=== Products/AdaptableStorage/mapper/interfaces/IMapperEvent.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/mapper/interfaces/IMapperEvent.py:1.1 Tue Dec 31 16:47:46 2002
+++ Products/AdaptableStorage/mapper/interfaces/IMapperEvent.py Thu Jan 9 09:34:04 2003
@@ -29,3 +29,12 @@
def makeKeychain(name, stored):
"""Generates a keychain for a subobject.
"""
+
+
+class ILoadEvent (IMapperEvent):
+ """Interface for events involved in loading objects."""
+
+
+class IStoreEvent (IMapperEvent):
+ """Interface for events involved in storing objects."""
+
=== Products/AdaptableStorage/mapper/interfaces/public.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/mapper/interfaces/public.py:1.1 Tue Dec 31 16:47:46 2002
+++ Products/AdaptableStorage/mapper/interfaces/public.py Thu Jan 9 09:34:04 2003
@@ -26,7 +26,7 @@
from IGateway import IGateway
from IKeychainGenerator import IKeychainGenerator
from IKeyedObjectSystem import IKeyedObjectSystem
-from IMapperEvent import IMapperEvent
+from IMapperEvent import IMapperEvent, ILoadEvent, IStoreEvent
from IObjectMapper import IObjectMapper
from IObjectSerializer import IObjectSerializer
from ISchema import ISchema