Changeset 1400


Ignore:
Timestamp:
8 Feb 2007, 14:54:59 (18 years ago)
Author:
Henrik Bettermann
Message:

implicit acquisition problem solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/deleteStudentByMatricNo.py

    r1384 r1400  
    7070logger.info(msg)
    7171
     72# remove objects
     73
     74if hasattr(students,student_id):
     75    students.manage_delObjects((student_id),)
     76    msg = "Student object for %s deleted" % student_id
     77else:
     78    msg = "No students object for %s" % student_id
     79output.append(msg)
     80logger.info(msg)
     81
    7282# remove from directory
    7383
     
    8090logger.info(msg)
    8191
    82 # remove objects
    83 
    84 if hasattr(students,student_id):
    85     students.manage_delObjects((student_id),)
    86     msg = "Student object for %s deleted" % student_id
    87 else:
    88     msg = "No students object for %s" % student_id
    89 output.append(msg)
    90 logger.info(msg)
    9192
    9293return "\n".join(output)
Note: See TracChangeset for help on using the changeset viewer.