Ignore:
Timestamp:
10 Oct 2006, 13:48:43 (18 years ago)
Author:
joachim
Message:

added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r606 r639  
    456456###)
    457457
     458class StudentAccommodation(CPSDocument): ###(
     459    """
     460    WAeUP Student container for the various student data
     461    """
     462    meta_type = 'StudentAccommodation'
     463    portal_type = meta_type
     464    security = ClassSecurityInfo()
     465
     466    security.declareProtected(View,"Title")
     467    def Title(self):
     468        """compose title"""
     469        content = self.getContent()
     470        #return "Accommodation Data for %s %s" % (content.firstname,content.lastname)
     471        return "Accommodation Data for Session %s" % content.session
     472
     473
     474InitializeClass(StudentAccommodation)
     475
     476def addStudentAccommodation(container, id, REQUEST=None, **kw):
     477    """Add a Students personal data."""
     478    ob = StudentAccommodation(id, **kw)
     479    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     480
     481###)
     482
    458483class StudentPersonal(CPSDocument): ###(
    459484    """
Note: See TracChangeset for help on using the changeset viewer.