Changeset 2520 for WAeUP_SRP/base
- Timestamp:
- 4 Nov 2007, 00:24:54 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2514 r2520 1212 1212 ###) 1213 1213 1214 security.declareProtected(ModifyPortalContent,'mass_create_applica nt') ###(1215 def mass_create_applica nt(self,mapping):1214 security.declareProtected(ModifyPortalContent,'mass_create_application') ###( 1215 def mass_create_application(self,mapping): 1216 1216 #import pdb;pdb.set_trace() 1217 1217 try: … … 1222 1222 ###) 1223 1223 1224 security.declareProtected(ModifyPortalContent,'mass_edit_applica nt') ###(1225 def mass_edit_applica nt(self,mapping):1224 security.declareProtected(ModifyPortalContent,'mass_edit_application') ###( 1225 def mass_edit_application(self,mapping): 1226 1226 #import pdb;pdb.set_trace() 1227 1227 reg_no = mapping.get('reg_no') … … 1240 1240 self._v_courses = {} 1241 1241 for brain in res: 1242 self._v_courses[brain.code] = brain 1242 self._v_courses[brain.code] = brain 1243 1243 course_id = mapping.get('code') 1244 1244 if course_id not in self._v_courses.keys(): … … 1273 1273 # self._v_courses = {} 1274 1274 # for brain in res: 1275 # self._v_courses[brain.code] = brain 1275 # self._v_courses[brain.code] = brain 1276 1276 # course_id = mapping.get('code') 1277 1277 # if course_id not in self._v_courses.keys(): … … 1665 1665 total_imported += 1 1666 1666 logger.info("%(total_imported)d of %(total)d %(em)s" % vars()) 1667 1667 1668 1668 if total and not total % 100: 1669 1669 transaction.commit()
Note: See TracChangeset for help on using the changeset viewer.