Changeset 1393
- Timestamp:
- 5 Feb 2007, 21:42:08 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 8 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r952 r1393 114 114 return self.title 115 115 return heading 116 117 ###) 116 ###) 118 117 119 118 InitializeClass(AccoHall) 120 119 120 121 121 def addAccoHall(container, id, REQUEST=None, **kw): 122 122 """Add a AccoHall.""" -
WAeUP_SRP/trunk/Students.py
r1386 r1393 1178 1178 table.addRecord(**result) 1179 1179 except ValueError: 1180 import pdb;pdb.set_trace()1180 #import pdb;pdb.set_trace() 1181 1181 result['Error'] = "Duplicate" 1182 1182 no_import.append( format_error % result) … … 1210 1210 open("%s/import/%sno_courses%s.csv" % (i_home,name,current),"a").write( 1211 1211 '\n'.join(no_course_list)) 1212 em = '%d transactions commited total %s\n courses not found %s' % (tr_count,total,course_count) 1213 logger.info(em) 1212 1214 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 1213 1215 ###) -
WAeUP_SRP/trunk/Widgets.py
r1379 r1393 203 203 204 204 widgetRegistry.register(WAeUPReservedRoomsWidget) 205 206 207 205 ###) 208 206 … … 463 461 464 462 widgetRegistry.register(MatricNoWidget) 463 ###) 464 465 class StudentIdWidget(CPSStringWidget): ###( 466 """ StudentId Widget""" 467 meta_type = "StudentId Widget" 468 def validate(self, datastructure, **kw): 469 """Validate datastructure and update datamodel.""" 470 valid = CPSStringWidget.validate(self, datastructure, **kw) 471 logger = logging.getLogger('StudentId.Validate') 472 #import pdb;pdb.set_trace() 473 s_cat = self.students_catalog 474 err = 0 475 widget_id = self.getWidgetId() 476 value = datastructure[widget_id] 477 if not valid or not value: 478 err = 'Invalid StudentId String %s.' % value 479 logger.info('"%s","invalid StudentId String"' % value) 480 datastructure['student'] = res 481 else: 482 value = value.upper() 483 res = s_cat(id = value) 484 if not res: 485 logger.info('"%s","StudentId not found."' % value) 486 err = 'No Student with StudentId %s.' % (value) 487 datastructure['student'] = None 488 else: 489 datastructure['student'] = res[0] 490 if err: 491 datastructure.setError(widget_id, err) 492 else: 493 datamodel = datastructure.getDataModel() 494 datamodel[self.fields[0]] = value 495 return not err 496 497 InitializeClass(StudentIdWidget) 498 499 widgetRegistry.register(StudentIdWidget) 465 500 ###) 466 501 -
WAeUP_SRP/trunk/profiles/default/layouts.xml
r1319 r1393 3 3 <property name="title"></property> 4 4 <object name="acco_hall" meta_type="CPS Layout"/> 5 <object name="acco_bed_booking" meta_type="CPS Layout"/> 5 6 <object name="academics_search" meta_type="CPS Layout"/> 6 7 <object name="certificate" meta_type="CPS Layout"/> -
WAeUP_SRP/trunk/profiles/default/schemas.xml
r1227 r1393 5 5 <object name="academics_search" meta_type="CPS Schema"/> 6 6 <object name="acco_hall" meta_type="CPS Schema"/> 7 <object name="acco_bed_booking" meta_type="CPS Schema"/> 7 8 <object name="certificate" meta_type="CPS Schema"/> 8 9 <object name="certificate_course" meta_type="CPS Schema"/> -
WAeUP_SRP/trunk/profiles/default/vocabularies.xml
r1334 r1393 2 2 <object name="portal_vocabularies" meta_type="CPS Vocabularies Tool"> 3 3 <property name="title"></property> 4 <object name="acco_hall_beds" meta_type="CPS Method Vocabulary"/> 5 <object name="acco_hall_reserved_rooms" meta_type="CPS Method Vocabulary"/> 4 6 <object name="courselevel" meta_type="CPS Vocabulary"/> 5 7 <object name="exam_subjects" meta_type="CPS Vocabulary"/> -
WAeUP_SRP/trunk/skins/waeup_utilities/fixLevel.py
r1285 r1393 30 30 values = scat.uniqueValuesFor('level') 31 31 #query = ~ In("level",('100', '200', '300', '400', '500', '600')) 32 query = In("level",('',))33 res = aq_students(query)32 #query = In("level",('',)) 33 #res = aq_students(query) 34 34 #from Products.zdb import set_trace;set_trace() 35 35 modified = [] -
WAeUP_SRP/trunk/skins/waeup_utilities/increaseReturningLevels.py
r1256 r1393 10 10 # $Id$ 11 11 """ 12 list Students for ClearanceOfficers12 increase the Level for returning Students 13 13 """ 14 14
Note: See TracChangeset for help on using the changeset viewer.