Changeset 1446
- Timestamp:
- 19 Feb 2007, 22:14:47 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/vocabularies/verdicts.xml
r1434 r1446 8 8 <item key="A" msgid="">successful student</item> 9 9 <item key="B" msgid="">student with carryover courses</item> 10 <item key="C" msgid="">student forprobation</item>10 <item key="C" msgid="">student on probation</item> 11 11 <item key="C" msgid="">student on probation/transfer</item> 12 12 <item key="D" msgid="">student who is to withdraw from the faculty</item> -
WAeUP_SRP/trunk/skins/waeup_accommodation/book_reserved_bed.py
r1444 r1446 72 72 break 73 73 if not bed_brain.bed_type.endswith("reserved"): 74 psm = "Not a reserved bed %s" % bid74 psm = "Not a reserved bed: %s" % bid 75 75 break 76 76 if bed_brain.student and not change: … … 85 85 break 86 86 if not bed_brain.bed_type.endswith("reserved"): 87 psm = "Not a reserved bed %s" % bid87 psm = "Not a reserved bed: %s" % bid 88 88 break 89 89 if not bed_brain.student: … … 91 91 break 92 92 break 93 93 94 94 if psm != '': 95 95 return context.book_reserved_bed_form(rendered = rendered, … … 103 103 for bed in already: 104 104 acco_cat.modifyRecord(bed=bed.bed,student='') 105 105 106 106 students = context.portal_url.getPortalObject().campus.students 107 107 student_obj = getattr(students,sid) … … 118 118 if acco_id in student_obj.objectIds(): 119 119 acco_doc = getattr(student_obj, acco_id).getContent() 120 acco_doc.edit(mapping={'bed': bid + "(removed)"})121 logger.info('"%s"," released reserved bed %s for","%s"' % (member,bid,sid))122 psm = " Bed %s released for %s" % (sid,student.name)123 120 acco_doc.edit(mapping={'bed':bid + " (reservation cancelled by %s!)" % member}) 121 logger.info('"%s","cancelled reservation %s by","%s"' % (member,bid,sid)) 122 psm = "%s removed from %s" % (student.name,bid) 123 124 124 mode = 'view' 125 125 return context.book_reserved_bed_form(rendered = "", -
WAeUP_SRP/trunk/skins/waeup_accommodation/reservedRoomsVoc.py
r1393 r1446 1 ##parameters=key=None 1 ##parameters=key=None 2 2 # $Id$ 3 3 """ … … 6 6 """ 7 7 doc = context.getContent() 8 voc = [("_".join((r.split('/')[0],r.split('/')[1])),r) 9 for r in doc.reserved_rooms. split(',') if r]8 voc = [("_".join((r.split('/')[0],r.split('/')[1])),r) 9 for r in doc.reserved_rooms.replace(' ','').split(',') if r] 10 10 #from Products.zdb import set_trace;set_trace() 11 11 if not key: -
WAeUP_SRP/trunk/skins/waeup_student/getVerdict.py
r1401 r1446 10 10 # $Id$ 11 11 12 verdicts = {'SUCCESSFUL STUDENT': (' successful',True),13 'STUDENT WITH CARRYOVER COURSES': (' carryover',True),14 'STUDENT ON PROBATION': (' probation',False),15 'WITHDRAWAL STUDENT': (' withdrawal',False),12 verdicts = {'SUCCESSFUL STUDENT': ('A',True), 13 'STUDENT WITH CARRYOVER COURSES': ('B',True), 14 'STUDENT ON PROBATION': ('C',False), 15 'WITHDRAWAL STUDENT': ('D',False), 16 16 'FIRST CLASS HONOURS': ('first_class',False), 17 17 'SECOND CLASS HONOURS (UPPER DIVISION)': ('second_class_upper',False), -
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1278 r1446 228 228 for item in items: 229 229 stcat = context.students_catalog 230 record = stcat(id = item)[0] 230 record = stcat(id = item) 231 if record: 232 record = record[0] 233 else: 234 return item+' not found in students_catalog' 231 235 info = {} 232 236 for field in stcat.schema() + stcat.indexes():
Note: See TracChangeset for help on using the changeset viewer.