Changeset 2289 for WAeUP_SRP/base/WAeUPTool.py
- Timestamp:
- 28 Sep 2007, 08:54:17 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2288 r2289 1032 1032 res = self.portal_catalog(id=course_id) 1033 1033 if not res: 1034 return '', "No Course with ID: %s" % did1034 return '', "No Course with ID: %s" % course_id 1035 1035 c = res[0].getObject() 1036 1036 c.getContent().edit(mapping=mapping) … … 1368 1368 validators[widget] = layout[widget].validate 1369 1369 #import pdb;pdb.set_trace() 1370 mode = "create" 1370 1371 if edit: 1371 importer_name = "mass_edit_%s" % name 1372 else: 1373 importer_name = "mass_create_%s" % name 1372 mode = "edit" 1373 importer_name = "mass_%(mode)s_%(name)s" % vars() 1374 1374 importer = getattr(self, '%s' % importer_name,None) 1375 1375 if importer is None: … … 1410 1410 for k in import_keys: 1411 1411 #import pdb;pdb.set_trace() 1412 if not validators[k](ds ):1412 if not validators[k](ds,mode=mode): 1413 1413 error_string += " %s : %s" % (k, 1414 1414 self.translation_service(ds.getError(k),
Note: See TracChangeset for help on using the changeset viewer.