Last change
on this file since 5506 was
502,
checked in by joachim, 18 years ago
|
Scratchcard Pin Generation
basic login in apply_admission
|
-
Property svn:keywords set to
Id
|
File size:
1.4 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 searchAndSetRecord(self, **data): |
---|
33 | """ |
---|
34 | searches a record and set a specific value if this is unset |
---|
35 | raises an error when not found. |
---|
36 | returns |
---|
37 | -1 if not found |
---|
38 | 0 if already set by other |
---|
39 | 1 if found and not set |
---|
40 | 2 if found and set |
---|
41 | """ |
---|
42 | |
---|
43 | def modifyRecord(uid, **data): |
---|
44 | """Modifies a record, with the data expressed in the data mapping. |
---|
45 | |
---|
46 | Raises an error if the uid does not exist. |
---|
47 | """ |
---|
48 | |
---|
Note: See
TracBrowser for help on using the repository browser.