Changeset 3094 for WAeUP_SRP


Ignore:
Timestamp:
3 Feb 2008, 07:46:04 (17 years ago)
Author:
Henrik Bettermann
Message:

fix2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3093 r3094  
    19511951        editable_keys = mapping.keys()
    19521952        if student_id:
    1953             student_record = self.students_catalog(id = student_id)
     1953            student_record = self.students_catalog.getRecordByKey(student_id)
    19541954            if student_record is None:
    19551955                return '',"no student with id %s" % student_id
     
    20762076        for item in items:
    20772077            #import pdb;pdb.set_trace()
    2078             d = {}
    2079             for k,l in item.items():
    2080                 if k:
    2081                     k = k.strip()
    2082                 if l:
    2083                     l = l.strip()
    2084                 d[k] = l
    2085             item = d
    2086             #item = dict((k.strip(),l.strip()) for (k,l) in item.items())
     2078            item = dict((k.strip(),l.strip()) for (k,l) in item.items())
    20872079            if start:
    20882080                start = False
Note: See TracChangeset for help on using the changeset viewer.