source: waeup_product/trunk/University.py @ 53

Last change on this file since 53 was 46, checked in by joachim, 19 years ago

mehr

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
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
10
11#
12# The WAeUP BaseContainer
13#
14
15class University(BaseBTreeFolder):
16    """
17    Container for the various WAeUP containers
18    """
19    meta_type = 'University'
20    portal_type = meta_type
21    security = ClassSecurityInfo()
22   
23    security.declarePublic('getStudentFolder')
24    def getStudentsFolder(self):
25        "return the studentsfolder"
26##        data = self._data
27##        print data.items()
28        print self.contentItems()
29        print self.contentValues()
30        print self.contentIds()
31        print self.listFolderContents()
32        print self.getContent().objectItems()
33       
34InitializeClass(University)
35
36
37def addUniversity(container, id, REQUEST=None, **kw):
38    """Add a WAeUP"""
39    ob = University(id, **kw)
40    return CPSBase_adder(container, ob, REQUEST=REQUEST)
41
Note: See TracBrowser for help on using the repository browser.