Changeset 2750 for WAeUP_SRP


Ignore:
Timestamp:
23 Nov 2007, 21:27:49 (17 years ago)
Author:
Henrik Bettermann
Message:

'int' object has no attribute 'isdigit'

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r2747 r2750  
    13231323        for brain in course_results:
    13241324            d = {}
    1325             if brain.credits.isdigit():
     1325            if str(brain.credits).isdigit():
    13261326                credits += int(brain.credits)
    13271327            for field in self.schema():
  • WAeUP_SRP/base/WAeUPTool.py

    r2747 r2750  
    14541454        res = self.students_catalog.evalAdvancedQuery(query)
    14551455        if not res:
    1456             return '', "No student with %(id_field)s: %(id_key)s" % vars()
     1456            return '', "no student with %(id_key)s %(id_field)s" % vars()
    14571457        if id_field != "student_id":
    14581458            mapping['student_id'] = res[0].id
Note: See TracChangeset for help on using the changeset viewer.