- Timestamp:
- 25 Apr 2007, 16:29:02 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1709 r1710 552 552 'pg_ft': '700', 553 553 'pg_pt': '700', 554 'dp_pt': '100', 555 'dp_ft': '100', 554 556 } 555 557 csv_d = {'jamb_reg_no': "reg_no", … … 638 640 catalog_entry['email'] = da['app_email'] 639 641 catalog_entry['entry_mode'] = da['entry_mode'] 640 catalog_entry['entry_level'] = da["entry_level"] = entry_levels.get(da['entry_mode'],' NA')642 catalog_entry['entry_level'] = da["entry_level"] = entry_levels.get(da['entry_mode'],'100') 641 643 app = student.application 642 644 app_doc = app.getContent() … … 647 649 file = None 648 650 for ext in ('jpg','JPG'): 649 picture ="%s/import/pictures /%s.%s" % (i_home,picture_id,ext)651 picture ="%s/import/pictures_admitted_latest/%s.%s" % (i_home,picture_id,ext) 650 652 if os.path.exists(picture): 651 653 file = open(picture) … … 660 662 dp['firstname'] = firstname 661 663 dp['middlename'] = middlename 662 dp['lastname'] = lastname 664 dp['lastname'] = lastname 663 665 dp['email'] = da['app_email'] 664 666 dp['sex'] = sex … … 696 698 #catalog_entry['level'] = getattr(cert_doc,'start_level') 697 699 catalog_entry['session'] = dsc['current_session'] = da['entry_session'] 698 catalog_entry['level'] = dsc['current_level'] = entry_levels.get(da['entry_mode'],' NA')700 catalog_entry['level'] = dsc['current_level'] = entry_levels.get(da['entry_mode'],'100') 699 701 catalog_entry['mode'] = dsc['current_mode'] = da['entry_mode'] 700 702 catalog_entry['course'] = dsc['study_course'] = cert_id 701 703 catalog_entry['faculty'] = certificate['faculty'] 702 704 catalog_entry['department'] = certificate['department'] 703 catalog_entry['verdict'] = dsc['current_verdict'] = 'N A'705 catalog_entry['verdict'] = dsc['current_verdict'] = 'N/A' 704 706 catalog_entry['review_state'] = self.portal_workflow.getInfoFor(student,'review_state',None) 705 707 study_course.getContent().edit(mapping=dsc) … … 1387 1389 ('email','email'), 1388 1390 ('phone','phone'), 1389 ('address','perm_address'), 1391 ('address','perm_address'), 1390 1392 ] 1391 1393 for r,d in r2d: … … 1411 1413 dict = {} 1412 1414 r2d = [('session','current_session'), 1413 ('level','current_level'), 1414 ('verdict','current_verdict'), 1415 ('level','current_level'), 1416 ('verdict','current_verdict'), 1415 1417 ('study_course','study_course'), 1416 1418 ] … … 1426 1428 dict = {} 1427 1429 r2d = [('session','session'), 1428 ('level','code'), 1429 ('verdict','verdict'), 1430 ('level','code'), 1431 ('verdict','verdict'), 1430 1432 ] 1431 1433 for r,d in r2d:
Note: See TracChangeset for help on using the changeset viewer.