Changeset 3422


Ignore:
Timestamp:
7 Apr 2008, 05:40:53 (17 years ago)
Author:
Henrik Bettermann
Message:

quick fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Accommodation.py

    r3406 r3422  
    216216            already = accommodation(student=sid)
    217217            if already:
    218                 accommodation.modifyRecord(bed=already[0].bed,student='')
     218                accommodation.modifyRecord(bed=already[0].bed,student=NOT_OCCUPIED)
    219219                student_obj = getattr(students_folder, student.id)
    220220                acco_id = "accommodation_%s" % self.getSessionId()[0]
    221221                if acco_id in student_obj.objectIds():
    222222                    acco_doc = getattr(student_obj, acco_id).getContent()
    223                     acco_doc.edit(mapping={'bed': bid})
     223                    info = context.getAccommodationInfo(sid)
     224                    status = info['student_status']
     225                    acco_doc.edit(mapping={'bed': bid,'bed_type' : status})
    224226                    member = self.portal_membership.getAuthenticatedMember()
    225227                    logger.info('%s changed reserved bed %s for %s' % (member,bid,sid))
Note: See TracChangeset for help on using the changeset viewer.