Changeset 2754
- Timestamp:
- 24 Nov 2007, 21:44:39 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2753 r2754 1444 1444 course_id = mapping.get('code') 1445 1445 if course_id not in self._v_courses.keys(): 1446 return '', "No course with ID: %s" % did1446 return '', "No course with ID: %s" % course_id 1447 1447 id_key = '' 1448 1448 for id_key in ('student_id','matric_no'): … … 1468 1468 level = getattr(context,"%(level_id)s" % mapping) 1469 1469 self.portal_workflow.doActionFor(level,'open') 1470 level.getContent().edit(mapping={'session': "%(session_id)s" % mapping}) 1470 1471 # the session string must not be copied into the level object 1472 #level.getContent().edit(mapping={'session': "%(session_id)s" % mapping}) 1473 1471 1474 #self.portal_workflow.doActionFor(level,'close_for_edit') 1472 1475 self._v_level_created += mapping['student_id'], … … 1690 1693 security.declareProtected(ModifyPortalContent,'mass_edit_student') ###( 1691 1694 def mass_edit_student(self,mapping): 1695 wftool = self.portal_workflow 1692 1696 "edit a students record due import" 1693 1697 logger = logging.getLogger('WAeUPTool.mass_edit_student') … … 1746 1750 break 1747 1751 level.getContent().edit(mapping = d) 1752 try: 1753 wftool.doActionFor(level,'close') 1754 except: 1755 pass 1748 1756 break 1749 1757 intersect = set(f2t[pt]['fields']).intersection(set(editable_keys)) … … 1816 1824 total = 0 1817 1825 iname = "import_%s" % name 1818 if iname == 'import_application':1826 if iname in ('import_application','import_course_result',): 1819 1827 commit_after = 2000 1820 1828 else:
Note: See TracChangeset for help on using the changeset viewer.