- Timestamp:
- 18 Dec 2006, 21:25:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r937 r1082 51 51 def importLocalRoles(self,portal_type): ###( 52 52 name = '%sLocalRoles' % portal_type 53 logger = logging.getLogger(' %s_import' % name)53 logger = logging.getLogger('Import.%s' % name) 54 54 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 55 55 logger.info('Start importing %(name)s to %(name)s_%(current)s.csv' % vars()) … … 87 87 name = 'Faculties' 88 88 no_import = False 89 logger = logging.getLogger(' %s_csv_import' % name)89 logger = logging.getLogger('Import.%s_csv' % name) 90 90 logger.info('Start loading from %s.csv' % name) 91 91 academics = self.portal_catalog({'meta_type': 'AcademicsFolder'})[-1].getObject() … … 134 134 name = 'Departments' 135 135 no_import = False 136 logger = logging.getLogger(' loaddepartments')136 logger = logging.getLogger('Import.Departments') 137 137 fields = ("code", 138 138 "review_state", … … 190 190 name = 'Courses' 191 191 no_import = False 192 logger = logging.getLogger(' loadcourses')192 logger = logging.getLogger('Import.Courses') 193 193 fields = ("code", 194 194 "review_state", … … 262 262 wf = self.portal_workflow 263 263 no_import_list = [] 264 logger = logging.getLogger(' loadcertificates')264 logger = logging.getLogger('Import.Certificates') 265 265 fields = ("code", 266 266 "review_state", … … 340 340 """install Certificate Courses from CSV values""" 341 341 #return 342 logger = logging.getLogger(' loadcertificatecourses')342 logger = logging.getLogger('Import.CertificateCourses') 343 343 name = 'CertificateCourses' 344 344 wf = self.portal_workflow 345 345 no_import_list = [] 346 logger = logging.getLogger(' loadcertificatecourses')346 logger = logging.getLogger('Import.CertificateCourses') 347 347 fields = ("code", 348 348 "review_state", … … 458 458 def exportLocalRoles(self,portal_type): ###( 459 459 name = '%sLocalRoles' % portal_type 460 logger = logging.getLogger(' %s_export' % name)460 logger = logging.getLogger('Export.%s' % name) 461 461 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 462 462 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) … … 485 485 name = 'Faculties' 486 486 no_import = False 487 logger = logging.getLogger(' %s_export' % name)487 logger = logging.getLogger('Export.%s' % name) 488 488 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 489 489 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) … … 518 518 name = 'Departments' 519 519 no_import = False 520 logger = logging.getLogger(' %s_export' % name)520 logger = logging.getLogger('Export.%s' % name) 521 521 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 522 522 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) … … 550 550 name = 'Courses' 551 551 no_import = False 552 logger = logging.getLogger(' %s_export' % name)552 logger = logging.getLogger('Export.%s' % name) 553 553 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 554 554 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) … … 592 592 name = 'Certificates' 593 593 no_import = False 594 logger = logging.getLogger(' %s_export' % name)594 logger = logging.getLogger('Export.%s' % name) 595 595 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 596 596 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) … … 648 648 name = 'CertificateCourses' 649 649 no_import = False 650 logger = logging.getLogger(' %s_export' % name)650 logger = logging.getLogger('Export.%s' % name) 651 651 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 652 652 logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars()) -
WAeUP_SRP/trunk/ScratchCards.py
r1012 r1082 37 37 """import PinBatch""" 38 38 name = "PINS" 39 logger = logging.getLogger(' %s_import' % name)39 logger = logging.getLogger('Import.%s' % name) 40 40 logger.info('Start loading from %s.csv' % name) 41 41 pins_section = self.portal_url.getPortalObject().campus.pins … … 53 53 dict = {} 54 54 prefix = pin['Serial'] 55 dict['prefix'] = pin['Serial'] 55 dict['prefix'] = pin['Serial'] 56 56 batch_no = pin['Pin'] 57 57 dict['batch_no'] = int(batch_no) -
WAeUP_SRP/trunk/Students.py
r1065 r1082 81 81 no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w") 82 82 no_import.write('"MatricNo","EntryRegNo","CurrentSession","StudentLevel","fullname","FirstName","MiddleName","Lastname","FormerSurname","Sex","Nationality","State","LGA","PermanentAddress","PermanentAddressCity","CampusAddress","PhoneNumber","Emailaddress","Mode","CourseMajor","Faculty","Dept"\n') 83 logger = logging.getLogger(' %s_import' % name)83 logger = logging.getLogger('Import.%s' % name) 84 84 logger.info('Start loading from %s.csv' % name) 85 85 pwlist = [] … … 275 275 open(no_import_name,"w").write('\n'.join(no_import)) 276 276 no_import = [] 277 logger = logging.getLogger(' %s_import' % name)277 logger = logging.getLogger('Import.%s' % name) 278 278 starttime = DateTime.now() 279 279 logger.info('Start loading from %s.csv' % name) … … 366 366 open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write( 367 367 '\n'.join(no_import)) 368 logger = logging.getLogger(' %s_import' % name)368 logger = logging.getLogger('Import.%s' % name) 369 369 logger.info('Start loading from %s.csv' % name) 370 370 l = self.portal_catalog({'meta_type': "Certificate"}) … … 581 581 open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write( 582 582 '\n'.join(no_import)) 583 logger = logging.getLogger(' %s_import' % name)583 logger = logging.getLogger('Import.%s' % name) 584 584 logger.info('Start loading from %s.csv' % name) 585 585 l = self.portal_catalog({'meta_type': "Certificate"}) … … 684 684 s = ','.join(['"(%s)"' % fn for fn in csv_fields]) 685 685 no_import.append('%s\n' % s) 686 logger = logging.getLogger(' %s_import' % name)686 logger = logging.getLogger('Import.%s' % name) 687 687 logger.info('Start loading from %s.csv' % name) 688 688 try: … … 821 821 no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w") 822 822 no_import.write('"Matnumber","CosCode","Ansbook","CosStuatus","Session","Mat_Cos","Score","CarryLevel","Grade","Weight","Semster","Verdict","Level","id","GPA"\n') 823 logger = logging.getLogger(' %s_import' % name)823 logger = logging.getLogger('Ímport.%s' % name) 824 824 logger.info('Start loading from %s.csv' % name) 825 825 students_folder = self.portal_catalog({'meta_type': 'StudentsFolder'})[-1].getObject() … … 944 944 no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w") 945 945 no_import.write('REG-NO,NAME,SEX,STATE,LGA,ENG-SCORE,SUBJ1,SUBJ1-SCORE,SUBJ2,SUBJ2-SCORE,SUBJ3,SUBJ3-SCORE,AGGREGATE,UNIV1,FACULTY1,COURSE1,UNIV2,FACULTY2,COURSE2') 946 logger = logging.getLogger(' %s_import' % name)946 logger = logging.getLogger('Import.%s' % name) 947 947 logger.info('Start loading from %s.csv' % name) 948 948 try: -
WAeUP_SRP/trunk/WAeUPTables.py
r1062 r1082 100 100 self.catalog_object(dict2ob(record_data), uid, idxs=name, 101 101 update_metadata=0) 102 102 103 103 security.declareProtected(ModifyPortalContent,"exportAllRecords") 104 104 def exportAllRecords(self): … … 141 141 rec = records[0] 142 142 self.modifyRecord(bed=rec.bed,student=student_id) 143 s_logger = logging.getLogger(' hostel_reservation')143 s_logger = logging.getLogger('Accommodation.Reservation') 144 144 s_logger.info("Student %s reserved bed %s" % (student_id,rec.bed)) 145 145 return 1,rec.bed … … 155 155 def __init__(self): 156 156 WAeUPTable.__init__(self, 'portal_pins') 157 158 157 158 159 159 def searchAndSetRecord(self, uid, student_id,prefix): 160 160 #records = self.searchResults(uid=uid) -
WAeUP_SRP/trunk/Widgets.py
r1038 r1082 491 491 def validate(self, datastructure, **kw): 492 492 """Validate datastructure and update datamodel.""" 493 s_logger = logging.getLogger(' Student.Pin')493 s_logger = logging.getLogger('Pin.Validate') 494 494 widget_id = self.getWidgetId() 495 495 v = datastructure[widget_id] … … 538 538 s_logger.info('"%s","%s", "checked admission though logged in", "%s"' % (s_id,ref,pin)) 539 539 break 540 if ok == 1: 540 if ok == 1: 541 541 s_logger.info('"%s","%s", "successfully used pin", "%s"' % (s_id,ref,pin)) 542 542 else: -
WAeUP_SRP/trunk/profiles/default/vocabularies/student_search_mode.xml
r1033 r1082 5 5 <property name="description"></property> 6 6 <property name="acl_write_roles">Manager</property> 7 <item key="student_id" msgid="">Student Id (complete ids only)</item>7 <item key="student_id" msgid="">Student Id (complete Ids only)</item> 8 8 <item key="name" msgid="">Name</item> 9 9 <item key="matric_no" msgid="">Matriculation No</item> 10 10 <item key="jamb_reg_no" msgid="">Jamb Registration No</item> 11 <item key="department" msgid="">Department (complete ids only)</item>11 <item key="department" msgid="">Department Code (complete codes only)</item> 12 12 </object> -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r1021 r1082 16 16 current = DateTime.DateTime() 17 17 import logging 18 logger = logging.getLogger(' Student.Login')18 logger = logging.getLogger('Member.Login') 19 19 20 20 … … 106 106 else: 107 107 to_member_home, to_workspaces = checkRedirect(portal, mtool) 108 108 109 if (not to_member_home) and (not to_workspaces): 109 110 redirect_to_portal = True … … 124 125 elif to_member_home: 125 126 redirect_url = mtool.getHomeFolder().absolute_url() 127 logger.info('"%s", "logged in"' % (member)) 126 128 elif to_workspaces: 127 129 redirect_url = portal.workspaces.absolute_url() 130 logger.info('"%s", "logged in"' % (member)) 128 131 elif redirect_to_portal: 129 132 redirect_url = portal_absolute_url 133 logger.info('"%s", "logged in"' % (member)) 130 134 131 135 REQUEST = context.REQUEST -
WAeUP_SRP/trunk/skins/waeup_custom/logout.py
r1067 r1082 10 10 # notify the event service that the user has logged out 11 11 import logging 12 logger = logging.getLogger(' Logout')12 logger = logging.getLogger('Member.Logout') 13 13 user = context.portal_membership.getAuthenticatedMember() 14 14 if user: -
WAeUP_SRP/trunk/skins/waeup_pins/disable_pins.py
r1062 r1082 15 15 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 16 16 import logging 17 logger = logging.getLogger(' getStudentInfo')17 logger = logging.getLogger('Pin.Disable') 18 18 19 19 request = REQUEST -
WAeUP_SRP/trunk/skins/waeup_pins/enable_pins.py
r1062 r1082 15 15 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 16 16 import logging 17 logger = logging.getLogger(' getStudentInfo')17 logger = logging.getLogger('Pin.Enable') 18 18 19 19 request = REQUEST -
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r911 r1082 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 <span tal:condition="not: info"> 3 <metal:block use-macro="here/illegal_view/macros/illegal_view" /> 4 </span> 5 <metal:block tal:condition="info"> 2 6 <metal:body use-macro="here/waeup_content_master/macros/master"> 3 7 <metal:main fill-slot="main"> … … 28 32 </metal:main> 29 33 </metal:body> 34 </metal:block> 30 35 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1073 r1082 16 16 current = DateTime.DateTime() 17 17 import logging 18 logger = logging.getLogger('Student.Clearance ')18 logger = logging.getLogger('Student.Clearance.Edit') 19 19 20 20 cpsdocument_edit_button = REQUEST.has_key('cpsdocument_edit_button') -
WAeUP_SRP/trunk/skins/waeup_student/getApplicationInfo.py
r1078 r1082 13 13 """ 14 14 import logging 15 logger = logging.getLogger(' getApplicationInfo')15 logger = logging.getLogger('Student.Application.Info') 16 16 17 17 request = context.REQUEST -
WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py
r1078 r1082 13 13 """ 14 14 import logging 15 logger = logging.getLogger(' getClearanceInfo')15 logger = logging.getLogger('Student.Clearance.Info') 16 16 17 17 request = context.REQUEST -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1067 r1082 21 21 22 22 import logging 23 logger = logging.getLogger(' getStudentInfo')23 logger = logging.getLogger('Student.Info') 24 24 25 25 info = {} -
WAeUP_SRP/trunk/skins/waeup_student/raise_objection.py
r1077 r1082 14 14 import DateTime 15 15 import logging 16 logger = logging.getLogger(' raise_objection')16 logger = logging.getLogger('Student.Objection') 17 17 18 18 wf = context.portal_workflow
Note: See TracChangeset for help on using the changeset viewer.