- Timestamp:
- 20 Jan 2009, 08:22:52 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPImport.py
r3842 r3863 885 885 # } 886 886 887 sub_types = ['StudentApplication','StudentClearance','StudentPersonal' ]887 sub_types = ['StudentApplication','StudentClearance','StudentPersonal','StudentStudyCourse'] 888 888 non_image_keys = {} 889 889 for i in sub_types: … … 912 912 #headline = ','.join(fields).replace('level','current_level') 913 913 headline = ','.join(fields) 914 headline = headline + ',password' 914 915 open(export_file,"a").write(headline +'\n') 915 916 format = '"%(' + ')s","%('.join(fields) + ')s"' 917 format = format + ',"%(password)s"' 916 918 res = self.students_catalog(id = student_id) 917 919 student = res[0] … … 926 928 for f in toexport[k]: 927 929 d[f] = getattr(object_doc,f,'') 930 if hasattr(stdir, student_id): 931 d['password'] = self.waeup_tool.getCredential(student_id) 932 stdir.deleteEntry(student_id) 933 self.waeup_tool.removePictureFolder(student_id) 928 934 line.append(format % d) 929 935 open(export_file,"a").write('\n'.join(line) +'\n') … … 934 940 msg = "Student object not found" 935 941 break 936 if hasattr(stdir, student_id): 937 stdir.deleteEntry(student_id) 938 self.waeup_tool.removePictureFolder(student_id) 942 939 943 break 940 944 return student_id,msg,mapping -
WAeUP_SRP/trunk/skins/waeup_accommodation/getAccommodationInfo.py
r3784 r3863 15 15 logger = logging.getLogger('Skins.getAccommodationInfo') 16 16 import DateTime 17 18 booking_disabled = False 17 19 18 20 request = context.REQUEST … … 121 123 info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None) 122 124 info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid" 125 elif booking_disabled: 126 info['booking_allowed'] = False 123 127 124 128 d = {} … … 147 151 info['student_status'] = student_status 148 152 return info 149 -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r3736 r3863 73 73 info['prod_id'] = '61' 74 74 75 gown_records = aq_payments(Eq('student_id',student_id) & Eq('category','gown')) 75 76 try: 76 77 level = int(student_record.level) 77 78 end_level = int(student_record.end_level) 78 if level >= end_level :79 if level >= end_level and not gown_records: 79 80 info['gown'] = True 80 81 except:
Note: See TracChangeset for help on using the changeset viewer.