source: WAeUP_SRP/branches/srp_backend/interfaces.py @ 446

Last change on this file since 446 was 438, checked in by Henrik Bettermann, 18 years ago
File size: 1.1 KB
Line 
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):
16    """WAeUP_SRP
17    """
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.