[197] | 1 | from Globals import InitializeClass,HTMLFile |
---|
[45] | 2 | from AccessControl import ClassSecurityInfo |
---|
[821] | 3 | from Products.ZCatalog.ZCatalog import ZCatalog |
---|
[45] | 4 | |
---|
| 5 | from Products.CMFCore.utils import getToolByName |
---|
| 6 | from Products.CMFCore.permissions import View |
---|
| 7 | from Products.CMFCore.permissions import ModifyPortalContent |
---|
| 8 | from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder |
---|
| 9 | from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument |
---|
| 10 | from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder |
---|
[84] | 11 | from Products.CPSDocument.CPSDocument import CPSDocument |
---|
[45] | 12 | |
---|
| 13 | # |
---|
| 14 | # The WAeUP BaseContainer |
---|
| 15 | # |
---|
[139] | 16 | class University(CPSDocument): |
---|
[45] | 17 | """ |
---|
| 18 | Container for the various WAeUP containers |
---|
| 19 | """ |
---|
| 20 | meta_type = 'University' |
---|
| 21 | portal_type = meta_type |
---|
| 22 | security = ClassSecurityInfo() |
---|
[46] | 23 | |
---|
[45] | 24 | InitializeClass(University) |
---|
| 25 | |
---|
| 26 | def addUniversity(container, id, REQUEST=None, **kw): |
---|
[197] | 27 | """Add a University""" |
---|
[45] | 28 | ob = University(id, **kw) |
---|
| 29 | return CPSBase_adder(container, ob, REQUEST=REQUEST) |
---|
[3824] | 30 | |
---|
| 31 | |
---|
| 32 | class WAeUPConfiguration(CPSDocument): ###( |
---|
| 33 | """ |
---|
| 34 | WAeUP Configuration |
---|
| 35 | """ |
---|
| 36 | meta_type = 'WAeUP Configuration' |
---|
| 37 | portal_type = meta_type |
---|
| 38 | security = ClassSecurityInfo() |
---|
[45] | 39 | |
---|
[3824] | 40 | def __init__(self, id, **kw): |
---|
| 41 | CPSDocument.__init__(self, id, **kw) |
---|
| 42 | |
---|
| 43 | InitializeClass(WAeUPConfiguration) |
---|
| 44 | |
---|
| 45 | def addWAeUPConfiguration(container, id, REQUEST=None, **kw): |
---|
| 46 | """Add a WAeUP Configuration.""" |
---|
| 47 | ob = WAeUPConfiguration(id, **kw) |
---|
| 48 | return CPSBase_adder(container, ob, REQUEST=REQUEST) |
---|
| 49 | |
---|