source: WAeUP_SRP/trunk/interfaces.py @ 462

Last change on this file since 462 was 363, checked in by lregebro, 18 years ago

Accomodation mapping storage tool.

File size: 1.1 KB
RevLine 
[199]1"""WAeUP interfaces.
2
3interfaces and components were first introduced for the Zope3 architecture.
4However they can also be used for Zope 2.9 applications too such as CMF and CPS.
5Currently they are used by the GenericSetup tool to adapts persistent objects
6that are worth im- / exporting to their dedicated XMLAdapter.
7
8In our case, we want the state of our vogon tool to be GenericSetup aware.
9Please see the exportimport.py file for more details on the corresponding
10XMLAdapter.
11"""
12
13from zope.interface import Interface
14
15class IWAeUPTool(Interface):
[274]16    """WAeUP_SRP
[199]17    """
[363]18
19class IWAeUPTable(Interface):
20    """Tables to store object relational data
21    """
22
23    def addRecord(**data):
24        """Adds a record, with the data expressed in the data mapping.
25       
26        Raises an error if the uid exists.
27        """
28   
29    def deleteRecord(uid):
30        """Deletes the record specified by the uid"""
31   
32    def modifyRecord(uid, **data):
33        """Modifies a record, with the data expressed in the data mapping.
34       
35        Raises an error if the uid does not exist.
36        """
37       
Note: See TracBrowser for help on using the repository browser.