Last change
on this file since 89 was
87,
checked in by joachim, 19 years ago
|
=fixed install break
|
-
Property svn:keywords set to
Id
|
File size:
934 bytes
|
Line | |
---|
1 | from Globals import InitializeClass |
---|
2 | from AccessControl import ClassSecurityInfo |
---|
3 | |
---|
4 | from Products.CMFCore.utils import getToolByName |
---|
5 | from Products.CMFCore.permissions import View |
---|
6 | from Products.CMFCore.permissions import ModifyPortalContent |
---|
7 | from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder |
---|
8 | from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument |
---|
9 | from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder |
---|
10 | from Products.CPSDocument.CPSDocument import CPSDocument |
---|
11 | |
---|
12 | # |
---|
13 | # The WAeUP BaseContainer |
---|
14 | # |
---|
15 | |
---|
16 | class University(BaseBTreeFolder): |
---|
17 | """ |
---|
18 | Container for the various WAeUP containers |
---|
19 | """ |
---|
20 | meta_type = 'University' |
---|
21 | portal_type = meta_type |
---|
22 | security = ClassSecurityInfo() |
---|
23 | |
---|
24 | InitializeClass(University) |
---|
25 | |
---|
26 | |
---|
27 | def addUniversity(container, id, REQUEST=None, **kw): |
---|
28 | """Add a WAeUP""" |
---|
29 | ob = University(id, **kw) |
---|
30 | return CPSBase_adder(container, ob, REQUEST=REQUEST) |
---|
31 | |
---|
Note: See
TracBrowser for help on using the repository browser.