Changeset 2596
- Timestamp:
- 8 Nov 2007, 15:44:45 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/deactivate_students.py
r2571 r2596 19 19 20 20 import logging 21 logger = logging.getLogger('Skins. remove_students')21 logger = logging.getLogger('Skins.deactivate_students') 22 22 from Products.AdvancedQuery import Eq, Between, Le,In 23 23 #aq_portal = context.portal_catalog_real.evalAdvancedQuery … … 45 45 for student_id in ids: 46 46 student = getattr(students_folder,student_id,None) 47 set_trace()48 47 if student is not None: 48 for object in student.objectValues(): 49 if context.portal_workflow.getInfoFor(object,'review_state',None) == "open": 50 context.portal_workflow.doActionFor(object,'close') 49 51 context.portal_workflow.doActionFor(student,'deactivate') 50 52 logger.info("%s deactivated student %s" % (member,student_id)) 53 deleted_list.append(student_id) 51 54 else: 52 55 logger.info("Student object %s not found" % (student_id))
Note: See TracChangeset for help on using the changeset viewer.