Changeset 1965 for WAeUP_SRP


Ignore:
Timestamp:
26 Jun 2007, 06:11:42 (18 years ago)
Author:
Henrik Bettermann
Message:

edit values only if in state admitted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1964 r1965  
    894894                return '',"no student with matric_no %s" % matric_no
    895895            editable_keys.remove('matric_no')
     896
     897        # included only to change wf state from admitted to returning
     898        if res[0].review_state != 'admitted':
     899            return '%s' % res[0].id ,"student is not in state admitted"
     900        # end inclusion   
     901
    896902        sid = res[0].id
    897903        student_obj = getattr(students_folder,sid)
Note: See TracChangeset for help on using the changeset viewer.