Changeset 3195
- Timestamp:
- 21 Feb 2008, 10:58:02 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3191 r3195 280 280 commit_after = 1000000 281 281 282 def getStudentRecord(self,mapping): 282 def getStudentRecord(self,mapping): ###( 283 283 for id_key in ('student_id','matric_no'): 284 284 id_field = mapping.get(id_key,'') … … 302 302 msg = "No student with %(search_key)s %(search_field)s" % vars() 303 303 return student_record,msg 304 304 ###) 305 305 306 def create(self,mapping):###( 306 307 students_folder = self.portal_url.getPortalObject().campus.students … … 379 380 ###) 380 381 381 def delete(self,mapping):###(382 def remove(self,mapping):###( 382 383 id_key = '' 383 384 msg = '' -
WAeUP_SRP/base/WAeUPTool.py
r3191 r3195 1418 1418 import_source_path = "%s/import/%s.csv" % (i_home,filename) 1419 1419 if not os.path.exists(import_source_path): 1420 em = 'No %(import_source_fn)s' % vars() 1420 fn = os.path.split(import_source_path)[1] 1421 em = 'No %(fn)s' % vars() 1421 1422 return em 1422 1423 import_source_fn = os.path.split(import_source_path)[1]
Note: See TracChangeset for help on using the changeset viewer.