source: waeup_product/trunk/University.py @ 140

Last change on this file since 140 was 139, checked in by joachim, 19 years ago

=migrate + editing of folders

  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[45]1from Globals import InitializeClass
2from AccessControl import ClassSecurityInfo
3
4from Products.CMFCore.utils import getToolByName
5from Products.CMFCore.permissions import View
6from Products.CMFCore.permissions import ModifyPortalContent
7from Products.CPSCore.CPSBase import CPSBase_adder, CPSBaseFolder
8from Products.CPSCore.CPSBase import CPSBaseDocument as BaseDocument
9from Products.CPSCore.CPSBase import CPSBaseBTreeFolder as BaseBTreeFolder
[84]10from Products.CPSDocument.CPSDocument import CPSDocument
[45]11
12#
13# The WAeUP BaseContainer
14#
15
[139]16class 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       
[139]24    security.declarePublic('waeup_url')
25    def waeup_url(self):
26        """ return the base_url"""
27        return "%s/sections/waeup" % self.portal_url
28        return self.REQUEST
29   
[45]30InitializeClass(University)
31
[46]32
[45]33def addUniversity(container, id, REQUEST=None, **kw):
34    """Add a WAeUP"""
35    ob = University(id, **kw)
36    return CPSBase_adder(container, ob, REQUEST=REQUEST)
37
Note: See TracBrowser for help on using the repository browser.