Changeset 639 for WAeUP_SRP/trunk/Students.py
- Timestamp:
- 10 Oct 2006, 13:48:43 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r606 r639 456 456 ###) 457 457 458 class 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 474 InitializeClass(StudentAccommodation) 475 476 def 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 458 483 class StudentPersonal(CPSDocument): ###( 459 484 """
Note: See TracChangeset for help on using the changeset viewer.