Last change
on this file since 396 was
363,
checked in by lregebro, 18 years ago
|
Accomodation mapping storage tool.
|
File size:
1.1 KB
|
Line | |
---|
1 | """WAeUP interfaces. |
---|
2 | |
---|
3 | interfaces and components were first introduced for the Zope3 architecture. |
---|
4 | However they can also be used for Zope 2.9 applications too such as CMF and CPS. |
---|
5 | Currently they are used by the GenericSetup tool to adapts persistent objects |
---|
6 | that are worth im- / exporting to their dedicated XMLAdapter. |
---|
7 | |
---|
8 | In our case, we want the state of our vogon tool to be GenericSetup aware. |
---|
9 | Please see the exportimport.py file for more details on the corresponding |
---|
10 | XMLAdapter. |
---|
11 | """ |
---|
12 | |
---|
13 | from zope.interface import Interface |
---|
14 | |
---|
15 | class IWAeUPTool(Interface): |
---|
16 | """WAeUP_SRP |
---|
17 | """ |
---|
18 | |
---|
19 | class 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.