Changeset 3320 for WAeUP_SRP/base
- Timestamp:
- 11 Mar 2008, 20:31:44 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3319 r3320 60 60 self.students_folder = waeup_tool.portal_url.getPortalObject().campus.students 61 61 self.member = member = waeup_tool.portal_membership.getAuthenticatedMember() 62 self.import_date = DateTime.DateTime().strftime("%d/%m/%y %H:%M:%S") 63 self.current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 62 self.import_date = DateTime.DateTime() 63 self.imported_by = str(member) 64 #self.current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 64 65 self.waeup_tool = waeup_tool 65 66 self.academics_folder = waeup_tool.portal_url.getPortalObject().campus.academics … … 102 103 info = {} 103 104 info['imported_from'] = '' 104 info['imported_by'] = str(member)105 info['import_date'] = self.import_date 105 info['imported_by'] = self.imported_by 106 info['import_date'] = self.import_date.strftime("%d/%m/%y %H:%M:%S") 106 107 info['error'] = '' 107 108 self.info = info -
WAeUP_SRP/base/WAeUPTool.py
r3308 r3320 1410 1410 return importer.init_errors 1411 1411 member = importer.member 1412 current = importer.current1412 #current = importer.current 1413 1413 import_date = importer.import_date 1414 1414 imported_by = importer.imported_by -
WAeUP_SRP/base/skins/waeup_upload/import_uploads.py
r3317 r3320 31 31 #pr = context.portal_registration 32 32 33 ids = request.get('ids',[]) 33 ids = request.get('ids',[]) 34 34 35 35 bypass_enabled = False … … 38 38 short_id = long_id.replace('.csv','') 39 39 doc = getattr(context, long_id).getContent() 40 msg, invalid_keys = doc['checkKeys']()41 if msg or invalid_keys:42 continue40 #msg, invalid_keys = doc['checkKeys']() 41 #if msg or invalid_keys: 42 # continue 43 43 if not bypass_enabled: 44 44 context.portal_catalog.setBypassQueue(1) 45 45 context.waeup_tool.doCommit() 46 46 47 msg = context.waeup_tool.importData(short_id, 47 48 doc.import_layout, … … 56 57 args['portal_status_message'] = '\r\n'.join(messages) 57 58 url = context.absolute_url() + '?' + urlencode(args) 58 request.RESPONSE.redirect(url) 59 59 return request.RESPONSE.redirect(url) 60 60 61
Note: See TracChangeset for help on using the changeset viewer.