Ignore:
Timestamp:
31 Aug 2006, 17:49:48 (18 years ago)
Author:
joachim
Message:

moved StudyLevel? class from Academics.py back to Students.py,
cause this Change broke existing StudyLevel? Objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r457 r458  
    430430###)
    431431
     432class StudyLevel(CPSDocument): ###(
     433    """
     434    WAeUP StudyLevel containing the courses and students
     435    """
     436    meta_type = 'StudyLevel'
     437    portal_type = meta_type
     438    security = ClassSecurityInfo()
     439
     440    security.declareProtected(View,"Title")
     441    def Title(self):
     442        """compose title"""
     443        return "Level %s" % self.aq_parent.getId()
     444   
     445
     446InitializeClass(StudyLevel)
     447
     448def addStudyLevel(container, id, REQUEST=None, **kw):
     449    """Add a StudyLevel."""
     450    ob = StudyLevel(id, **kw)
     451    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     452
     453###)
     454
    432455class StudentStudyLevel(CPSDocument): ###(
    433456    """
Note: See TracChangeset for help on using the changeset viewer.