Changeset 3177
- Timestamp:
- 18 Feb 2008, 10:06:25 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3172 r3177 506 506 class FacultyImport(WAeUPImport):###( 507 507 name = "faculty" 508 plural_name = " %ss" % name508 plural_name = "faculties" 509 509 commit_after = 100 510 510 … … 526 526 f = getattr(academics_folder,fid,None) 527 527 f.getContent().edit(mapping=mapping) 528 return fid,msg,mapping 528 break 529 return fid,msg,mapping 529 530 ###) 530 531 … … 538 539 if f is None: 539 540 msg = "Faculty with ID: %s does not exist" % fid 540 break541 541 f.getContent().edit(mapping=mapping) 542 break 542 543 return fid,msg,mapping 543 544 ###) -
WAeUP_SRP/base/WAeUPTool.py
r3176 r3177 1346 1346 students_folder = self.portal_url.getPortalObject().campus.students 1347 1347 pending_only = False 1348 pend_str = ' _pending'1348 pend_str = '--' 1349 1349 elapse = time.time() 1350 1350 # 1351 1351 # preparations 1352 1352 # 1353 if name.endswith(pend_str):1353 if filename == pend_str: 1354 1354 pending_only = True 1355 name = name[:-len(pend_str)]1356 1355 mode = "create" 1357 1356 if edit: … … 1360 1359 else: 1361 1360 mode = "edit" 1362 # schema = stool._getOb(iname)1363 # if schema is None:1364 # em = 'No such schema %s' % iname1365 # logger.error('No such schema %s' % iname)1366 # return em1367 # pending_schema = stool._getOb("%s_pending" % iname)1368 # if pending_schema is None:1369 # em = 'No such schema %s_pending' % iname1370 # logger.error('No such schema %s_pending' % iname)1371 # return em1372 # layout = ltool._getOb(iname)1373 # if layout is None:1374 # em = 'No such layout %s' % iname1375 # logger.error(em)1376 # return em1377 1361 importer_name = ''.join([part.capitalize() for part in name.split('_')]) 1378 1362 importer = eval("%sImport" % importer_name)(mode,self) … … 1570 1554 else: 1571 1555 added_pending = total_pending - pending_at_start 1572 msg += "%(pending_fn)s: added = %(added_pending)d, already in = %(already_in)s " % vars()1573 msg += " ,total %(total_pending)d; " % vars()1556 msg += "%(pending_fn)s: added = %(added_pending)d, already in = %(already_in)s, " % vars() 1557 msg += " total %(total_pending)d; " % vars() 1574 1558 logger.info(msg) 1575 1559 return msg -
WAeUP_SRP/uniben/profiles/default/vocabularies/import_names.xml
r3134 r3177 11 11 <item key="course" msgid="">Course Data</item> 12 12 <item key="course_result" msgid="">Course Result Data</item> 13 <item key="course_result_pending" msgid="">Pending Course Results only</item>14 13 <item key="certificate" msgid="">Certificate Data</item> 15 14 <item key="certificate_course" msgid="">Certificate Course Data</item> 16 15 <item key="application" msgid="">Application Data</item> 17 16 <item key="verdict" msgid="">Verdicts</item> 18 <item key="verdict_pending" msgid="">Pending Verdicts only</item>19 17 </object>
Note: See TracChangeset for help on using the changeset viewer.