Changeset 2912 for WAeUP_SRP/base


Ignore:
Timestamp:
10 Dec 2007, 20:11:24 (17 years ago)
Author:
Henrik Bettermann
Message:

layout changes

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Students.py

    r2662 r2912  
    219219                continue
    220220            try:
    221                 icl = int(old_current_level)               
     221                icl = int(old_current_level)
    222222                if icl == int(old_current_level) and old_study_course == new_study_course:
    223223                    em = 'Already transferred'
     
    594594        """compose title"""
    595595        content = self.getContent()
     596        session_str = self.portal_vocabularies.sessions.get(content.session)
    596597        #return "Accommodation Data for %s %s" % (content.firstname,content.lastname)
    597         return "Accommodation Data for Session %s" % content.session
     598        return "Accommodation Data for Session %s" % session_str
    598599
    599600
     
    618619    def Title(self):
    619620        """compose title"""
    620         content = self.getContent()
     621        #content = self.getContent()
    621622        #return "Personal Data for %s %s" % (content.firstname,content.lastname)
    622623        return "Personal Data"
     
    643644    def Title(self):
    644645        """compose title"""
    645         content = self.getContent()
     646        #content = self.getContent()
    646647        #return "Clearance/Eligibility Record for %s %s" % (content.firstname,content.lastname)
    647648        return "Clearance/Eligibility Record"
     
    715716    def Title(self):
    716717        """compose title"""
    717         content = self.getContent()
     718        #content = self.getContent()
    718719        return "Study Course"
    719720
     
    750751###)
    751752
    752 class StudentPume(CPSDocument): ###(
    753     """
    754     WAeUP Student container for the various student data
    755     """
    756     meta_type = 'StudentPume'
    757     portal_type = meta_type
    758     security = ClassSecurityInfo()
    759 
    760     security.declareProtected(View,"Title")
    761     def Title(self):
    762         """compose title"""
    763         return "PUME Results"
    764 
    765 
    766 InitializeClass(StudentPume)
    767 
    768 def addStudentPume(container, id, REQUEST=None, **kw):
    769     """Add a Students PUME data."""
    770     ob = StudentPume(id, **kw)
    771     return CPSBase_adder(container, ob, REQUEST=REQUEST)
    772 ###)
    773 
    774 ##class StudentSemester(CPSDocument): ###(
    775 ##    """
    776 ##    WAeUP StudentSemester containing the courses and students
    777 ##    """
    778 ##    meta_type = 'StudentSemester'
    779 ##    portal_type = meta_type
    780 ##    security = ClassSecurityInfo()
    781 ##
    782 ##InitializeClass(StudentSemester)
    783 ##
    784 ##def addStudentSemester(container, id, REQUEST=None, **kw):
    785 ##    """Add a StudentSemester."""
    786 ##    ob = StudentSemester(id, **kw)
    787 ##    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    788 ##
    789 #####)
    790 
    791 ##class Semester(CPSDocument): ###(
    792 ##    """
    793 ##    WAeUP Semester containing the courses and students
    794 ##    """
    795 ##    meta_type = 'Semester'
    796 ##    portal_type = meta_type
    797 ##    security = ClassSecurityInfo()
    798 ##
    799 ##InitializeClass(Semester)
    800 ##
    801 ##def addSemester(container, id, REQUEST=None, **kw):
    802 ##    """Add a Semester."""
    803 ##    ob = Semester(id, **kw)
    804 ##    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    805 ##
    806 #####)
    807753
    808754class StudentCourseResult(CPSDocument): ###(
     
    839785###)
    840786
     787class StudentPume(CPSDocument): ###(
     788    """
     789    WAeUP Student container for the various student data
     790    """
     791    meta_type = 'StudentPume'
     792    portal_type = meta_type
     793    security = ClassSecurityInfo()
     794
     795    security.declareProtected(View,"Title")
     796    def Title(self):
     797        """compose title"""
     798        return "PUME Results"
     799
     800
     801InitializeClass(StudentPume)
     802
     803def addStudentPume(container, id, REQUEST=None, **kw):
     804    """Add a Students PUME data."""
     805    ob = StudentPume(id, **kw)
     806    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     807
     808
     809
    841810# Backward Compatibility StudyLevel
    842811
  • WAeUP_SRP/base/skins/waeup_student/reserve_accommodation.py

    r2887 r2912  
    4040acco_id = info['acco_id']
    4141#session = info['session'][1]
    42 session = info['session']
    43 #session = acco_id[-4:]
     42session = info['session'][0]
     43
    4444validate = REQUEST.has_key("cpsdocument_create_button")
    4545if info.has_key('acco') and info['acco']:
Note: See TracChangeset for help on using the changeset viewer.