Changeset 581


Ignore:
Timestamp:
28 Sep 2006, 14:17:44 (18 years ago)
Author:
joachim
Message:

backward compatibility for Semester

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r579 r581  
    611611#####)
    612612
    613 ##class Semester(CPSDocument): ###(
    614 ##    """
    615 ##    WAeUP Semester containing the courses and students
    616 ##    """
    617 ##    meta_type = 'Semester'
    618 ##    portal_type = meta_type
    619 ##    security = ClassSecurityInfo()
    620 ##
    621 ##InitializeClass(Semester)
    622 ##
    623 ##def addSemester(container, id, REQUEST=None, **kw):
    624 ##    """Add a Semester."""
    625 ##    ob = Semester(id, **kw)
    626 ##    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    627 ##
    628 #####)
    629 ##
     613class Semester(CPSDocument): ###(
     614    """
     615    WAeUP Semester containing the courses and students
     616    """
     617    meta_type = 'Semester'
     618    portal_type = meta_type
     619    security = ClassSecurityInfo()
     620
     621InitializeClass(Semester)
     622
     623def addSemester(container, id, REQUEST=None, **kw):
     624    """Add a Semester."""
     625    ob = Semester(id, **kw)
     626    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     627
     628)
     629
    630630
    631631class StudentCourseResult(CPSDocument): ###(
Note: See TracChangeset for help on using the changeset viewer.