Changeset 1814


Ignore:
Timestamp:
23 May 2007, 19:59:32 (18 years ago)
Author:
Henrik Bettermann
Message:

syntax error fixed in logged_in.py
error messages extended in Widgets.py

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r1805 r1814  
    525525            pume = jamb_nr_catalog(jamb_reg_no = value)
    526526            if len(pume) < 1:
    527                 err = 'No student record with registration number %s.' %value
     527                err = 'No student record with registration number %s in %s.' % (value,jamb_nr_catalog)
    528528            else:
    529529                datastructure['pume'] = pume[0]
     
    669669                if len(res) < 1:
    670670                    logger.info('matric_no %s not found' % value)
    671                     err = 'No student with Matriculation Number %s' % (value)
     671                    err = 'No student in returning import catalog with matriculation number %s' % (value)
    672672                    break
    673673                datastructure['student'] = res[0]
     
    675675                    res = results(matric_no = value)
    676676                    if len(res) < 1:
    677                         err = 'No results for Matriculation Number %s' % (value)
     677                        err = 'No results for matriculation number %s' % (value)
    678678                        continue
    679679                    datastructure['results'] = res
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1813 r1814  
    9393            folder = 'returning_import'
    9494            res = context.students_catalog(id = str(member))
    95             filename = res['matric_no'].upper()
     95            filename = res[0].matric_no.upper()
    9696            msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
    9797            logger.info('%s, %s' % (member,msg))
Note: See TracChangeset for help on using the changeset viewer.