Changeset 1082 for WAeUP_SRP


Ignore:
Timestamp:
18 Dec 2006, 21:25:01 (18 years ago)
Author:
Henrik Bettermann
Message:

logging messages changed

Location:
WAeUP_SRP/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r937 r1082  
    5151    def importLocalRoles(self,portal_type): ###(
    5252        name = '%sLocalRoles' % portal_type
    53         logger = logging.getLogger('%s_import' % name)
     53        logger = logging.getLogger('Import.%s' % name)
    5454        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    5555        logger.info('Start importing %(name)s to %(name)s_%(current)s.csv' % vars())
     
    8787        name = 'Faculties'
    8888        no_import = False
    89         logger = logging.getLogger('%s_csv_import' % name)
     89        logger = logging.getLogger('Import.%s_csv' % name)
    9090        logger.info('Start loading from %s.csv' % name)
    9191        academics = self.portal_catalog({'meta_type': 'AcademicsFolder'})[-1].getObject()
     
    134134        name = 'Departments'
    135135        no_import = False
    136         logger = logging.getLogger('loaddepartments')
     136        logger = logging.getLogger('Import.Departments')
    137137        fields = ("code",
    138138                  "review_state",
     
    190190        name = 'Courses'
    191191        no_import = False
    192         logger = logging.getLogger('loadcourses')
     192        logger = logging.getLogger('Import.Courses')
    193193        fields = ("code",
    194194                  "review_state",
     
    262262        wf = self.portal_workflow
    263263        no_import_list = []
    264         logger = logging.getLogger('loadcertificates')
     264        logger = logging.getLogger('Import.Certificates')
    265265        fields = ("code",
    266266                  "review_state",
     
    340340        """install Certificate Courses from CSV values"""
    341341        #return
    342         logger = logging.getLogger('loadcertificatecourses')
     342        logger = logging.getLogger('Import.CertificateCourses')
    343343        name = 'CertificateCourses'
    344344        wf = self.portal_workflow
    345345        no_import_list = []
    346         logger = logging.getLogger('loadcertificatecourses')
     346        logger = logging.getLogger('Import.CertificateCourses')
    347347        fields = ("code",
    348348                  "review_state",
     
    458458    def exportLocalRoles(self,portal_type): ###(
    459459        name = '%sLocalRoles' % portal_type
    460         logger = logging.getLogger('%s_export' % name)
     460        logger = logging.getLogger('Export.%s' % name)
    461461        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    462462        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
     
    485485        name = 'Faculties'
    486486        no_import = False
    487         logger = logging.getLogger('%s_export' % name)
     487        logger = logging.getLogger('Export.%s' % name)
    488488        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    489489        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
     
    518518        name = 'Departments'
    519519        no_import = False
    520         logger = logging.getLogger('%s_export' % name)
     520        logger = logging.getLogger('Export.%s' % name)
    521521        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    522522        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
     
    550550        name = 'Courses'
    551551        no_import = False
    552         logger = logging.getLogger('%s_export' % name)
     552        logger = logging.getLogger('Export.%s' % name)
    553553        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    554554        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
     
    592592        name = 'Certificates'
    593593        no_import = False
    594         logger = logging.getLogger('%s_export' % name)
     594        logger = logging.getLogger('Export.%s' % name)
    595595        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    596596        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
     
    648648        name = 'CertificateCourses'
    649649        no_import = False
    650         logger = logging.getLogger('%s_export' % name)
     650        logger = logging.getLogger('Export.%s' % name)
    651651        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    652652        logger.info('Start exporting %(name)s to %(name)s_%(current)s.csv' % vars())
  • WAeUP_SRP/trunk/ScratchCards.py

    r1012 r1082  
    3737        """import PinBatch"""
    3838        name = "PINS"
    39         logger = logging.getLogger('%s_import' % name)
     39        logger = logging.getLogger('Import.%s' % name)
    4040        logger.info('Start loading from %s.csv' % name)
    4141        pins_section = self.portal_url.getPortalObject().campus.pins
     
    5353                    dict = {}
    5454                    prefix = pin['Serial']
    55                     dict['prefix'] = pin['Serial'] 
     55                    dict['prefix'] = pin['Serial']
    5656                    batch_no = pin['Pin']
    5757                    dict['batch_no'] = int(batch_no)
  • WAeUP_SRP/trunk/Students.py

    r1065 r1082  
    8181            no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w")
    8282            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)
    8484        logger.info('Start loading from %s.csv' % name)
    8585        pwlist  = []
     
    275275        open(no_import_name,"w").write('\n'.join(no_import))
    276276        no_import = []
    277         logger = logging.getLogger('%s_import' % name)
     277        logger = logging.getLogger('Import.%s' % name)
    278278        starttime = DateTime.now()
    279279        logger.info('Start loading from %s.csv' % name)
     
    366366        open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write(
    367367                    '\n'.join(no_import))
    368         logger = logging.getLogger('%s_import' % name)
     368        logger = logging.getLogger('Import.%s' % name)
    369369        logger.info('Start loading from %s.csv' % name)
    370370        l = self.portal_catalog({'meta_type': "Certificate"})
     
    581581        open("%s/import/%s_not_imported.csv" % (i_home,name),"w").write(
    582582                    '\n'.join(no_import))
    583         logger = logging.getLogger('%s_import' % name)
     583        logger = logging.getLogger('Import.%s' % name)
    584584        logger.info('Start loading from %s.csv' % name)
    585585        l = self.portal_catalog({'meta_type': "Certificate"})
     
    684684        s = ','.join(['"(%s)"' % fn for fn in csv_fields])
    685685        no_import.append('%s\n' % s)
    686         logger = logging.getLogger('%s_import' % name)
     686        logger = logging.getLogger('Import.%s' % name)
    687687        logger.info('Start loading from %s.csv' % name)
    688688        try:
     
    821821            no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w")
    822822            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)
    824824        logger.info('Start loading from %s.csv' % name)
    825825        students_folder = self.portal_catalog({'meta_type': 'StudentsFolder'})[-1].getObject()
     
    944944            no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w")
    945945            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)
    947947        logger.info('Start loading from %s.csv' % name)
    948948        try:
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1062 r1082  
    100100            self.catalog_object(dict2ob(record_data), uid, idxs=name,
    101101                                update_metadata=0)
    102            
     102
    103103    security.declareProtected(ModifyPortalContent,"exportAllRecords")
    104104    def exportAllRecords(self):
     
    141141        rec = records[0]
    142142        self.modifyRecord(bed=rec.bed,student=student_id)
    143         s_logger = logging.getLogger('hostel_reservation')
     143        s_logger = logging.getLogger('Accommodation.Reservation')
    144144        s_logger.info("Student %s reserved bed %s" % (student_id,rec.bed))
    145145        return 1,rec.bed
     
    155155    def __init__(self):
    156156        WAeUPTable.__init__(self, 'portal_pins')
    157        
    158    
     157
     158
    159159    def searchAndSetRecord(self, uid, student_id,prefix):
    160160        #records = self.searchResults(uid=uid)
  • WAeUP_SRP/trunk/Widgets.py

    r1038 r1082  
    491491    def validate(self, datastructure, **kw):
    492492        """Validate datastructure and update datamodel."""
    493         s_logger = logging.getLogger('Student.Pin')
     493        s_logger = logging.getLogger('Pin.Validate')
    494494        widget_id = self.getWidgetId()
    495495        v = datastructure[widget_id]
     
    538538                        s_logger.info('"%s","%s", "checked admission though logged in", "%s"' % (s_id,ref,pin))
    539539                        break
    540                     if ok == 1:   
     540                    if ok == 1:
    541541                        s_logger.info('"%s","%s", "successfully used pin", "%s"' % (s_id,ref,pin))
    542542                    else:
  • WAeUP_SRP/trunk/profiles/default/vocabularies/student_search_mode.xml

    r1033 r1082  
    55 <property name="description"></property>
    66 <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>
    88 <item key="name" msgid="">Name</item>
    99 <item key="matric_no" msgid="">Matriculation No</item>
    1010 <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>
    1212</object>
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1021 r1082  
    1616current = DateTime.DateTime()
    1717import logging
    18 logger = logging.getLogger('Student.Login')
     18logger = logging.getLogger('Member.Login')
    1919
    2020
     
    106106        else:
    107107            to_member_home, to_workspaces = checkRedirect(portal, mtool)
     108
    108109if (not to_member_home) and (not to_workspaces):
    109110    redirect_to_portal = True
     
    124125elif to_member_home:
    125126    redirect_url = mtool.getHomeFolder().absolute_url()
     127    logger.info('"%s", "logged in"' % (member))
    126128elif to_workspaces:
    127129    redirect_url = portal.workspaces.absolute_url()
     130    logger.info('"%s", "logged in"' % (member))   
    128131elif redirect_to_portal:
    129132    redirect_url = portal_absolute_url
     133    logger.info('"%s", "logged in"' % (member))
    130134
    131135REQUEST = context.REQUEST
  • WAeUP_SRP/trunk/skins/waeup_custom/logout.py

    r1067 r1082  
    1010# notify the event service that the user has logged out
    1111import logging
    12 logger = logging.getLogger('Logout')
     12logger = logging.getLogger('Member.Logout')
    1313user = context.portal_membership.getAuthenticatedMember()
    1414if user:
  • WAeUP_SRP/trunk/skins/waeup_pins/disable_pins.py

    r1062 r1082  
    1515current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    1616import logging
    17 logger = logging.getLogger('getStudentInfo')
     17logger = logging.getLogger('Pin.Disable')
    1818
    1919request = REQUEST
  • WAeUP_SRP/trunk/skins/waeup_pins/enable_pins.py

    r1062 r1082  
    1515current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    1616import logging
    17 logger = logging.getLogger('getStudentInfo')
     17logger = logging.getLogger('Pin.Enable')
    1818
    1919request = REQUEST
  • WAeUP_SRP/trunk/skins/waeup_student/application_view.pt

    r911 r1082  
    11<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">
    26  <metal:body use-macro="here/waeup_content_master/macros/master">
    37    <metal:main fill-slot="main">
     
    2832    </metal:main>
    2933  </metal:body>
     34  </metal:block>
    3035</metal:html>
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r1073 r1082  
    1616current = DateTime.DateTime()
    1717import logging
    18 logger = logging.getLogger('Student.Clearance')
     18logger = logging.getLogger('Student.Clearance.Edit')
    1919
    2020cpsdocument_edit_button = REQUEST.has_key('cpsdocument_edit_button')
  • WAeUP_SRP/trunk/skins/waeup_student/getApplicationInfo.py

    r1078 r1082  
    1313"""
    1414import logging
    15 logger = logging.getLogger('getApplicationInfo')
     15logger = logging.getLogger('Student.Application.Info')
    1616
    1717request = context.REQUEST
  • WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py

    r1078 r1082  
    1313"""
    1414import logging
    15 logger = logging.getLogger('getClearanceInfo')
     15logger = logging.getLogger('Student.Clearance.Info')
    1616
    1717request = context.REQUEST
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1067 r1082  
    2121
    2222import logging
    23 logger = logging.getLogger('getStudentInfo')
     23logger = logging.getLogger('Student.Info')
    2424
    2525info = {}
  • WAeUP_SRP/trunk/skins/waeup_student/raise_objection.py

    r1077 r1082  
    1414import DateTime
    1515import logging
    16 logger = logging.getLogger('raise_objection')
     16logger = logging.getLogger('Student.Objection')
    1717
    1818wf = context.portal_workflow
Note: See TracChangeset for help on using the changeset viewer.