equal
deleted
inserted
replaced
1 # |
|
2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> |
|
3 # All Rights Reserved. |
|
4 # |
|
5 # This software is subject to the provisions of the Zope Public License, |
|
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. |
|
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED |
|
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS |
|
10 # FOR A PARTICULAR PURPOSE. |
|
11 # |
|
12 |
|
13 __docformat__ = 'restructuredtext' |
|
14 |
|
15 |
|
16 # import standard library |
|
17 |
|
18 # import interfaces |
|
19 from pyams_content.interfaces import IBaseContent |
|
20 from zope.container.interfaces import IContainer |
|
21 |
|
22 # import packages |
|
23 from zope.container.constraints import containers, contains |
|
24 |
|
25 |
|
26 class IReferenceInfo(IBaseContent): |
|
27 """Base reference interface""" |
|
28 |
|
29 containers('.IReferenceTable') |
|
30 |
|
31 |
|
32 class IReferenceTable(IBaseContent): |
|
33 """Reference table interface""" |
|
34 |
|
35 containers('.IReferenceTableContainer') |
|
36 contains(IReferenceInfo) |
|
37 |
|
38 |
|
39 class IReferenceManager(IBaseContent, IContainer): |
|
40 """References tables container""" |
|
41 |
|
42 contains(IReferenceTable) |
|