Last change
on this file since 220 was
197,
checked in by joachim, 19 years ago
|
=creating the WAeUP Tool
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[197] | 1 | from Globals import InitializeClass,HTMLFile |
---|
[45] | 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 |
---|
[84] | 10 | from Products.CPSDocument.CPSDocument import CPSDocument |
---|
[45] | 11 | |
---|
| 12 | # |
---|
| 13 | # The WAeUP BaseContainer |
---|
| 14 | # |
---|
[139] | 15 | class University(CPSDocument): |
---|
[45] | 16 | """ |
---|
| 17 | Container for the various WAeUP containers |
---|
| 18 | """ |
---|
| 19 | meta_type = 'University' |
---|
| 20 | portal_type = meta_type |
---|
| 21 | security = ClassSecurityInfo() |
---|
[46] | 22 | |
---|
[139] | 23 | security.declarePublic('waeup_url') |
---|
| 24 | def waeup_url(self): |
---|
| 25 | """ return the base_url""" |
---|
| 26 | return "%s/sections/waeup" % self.portal_url |
---|
| 27 | return self.REQUEST |
---|
| 28 | |
---|
[45] | 29 | InitializeClass(University) |
---|
| 30 | |
---|
| 31 | def addUniversity(container, id, REQUEST=None, **kw): |
---|
[197] | 32 | """Add a University""" |
---|
[45] | 33 | ob = University(id, **kw) |
---|
| 34 | return CPSBase_adder(container, ob, REQUEST=REQUEST) |
---|
| 35 | |
---|
Note: See
TracBrowser for help on using the repository browser.