- Timestamp:
- 27 Feb 2009, 20:27:26 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPImport.py
r3984 r3987 706 706 'jamb_score', 707 707 'app_email', 708 'app_mobile', 708 709 'jamb_age', 709 710 'jamb_state', 710 711 'jamb_lga', 711 712 'jamb_sex', 713 'app_ac_pin', 714 'app_reg_pin', 715 'app_ac_date', 712 716 ) 713 717 }, 714 #'StudentPume':715 # {'id': 'pume',716 # 'title': 'Pume Data',717 # 'wf_transition_return': 'close',718 # 'wf_transition_admit': 'close',719 # 'fields':720 # ('pume_score',721 # )722 # },723 718 'StudentClearance': 724 719 {'id': 'clearance', … … 730 725 'wf_transition_validate_courses': 'close', 731 726 'fields': 732 ('matric_no',727 ('matric_no', 733 728 'nationality', 734 729 'lga', 735 730 'birthday', 731 'clr_ac_pin', 732 'request_date', 733 'cleared_date', 734 'clearance_officer', 736 735 ) 737 736 }, … … 752 751 'phone', 753 752 'perm_address', 753 'marit_stat', 754 'disabled', 754 755 ) 755 756 }, … … 802 803 matric_no = mapping.get('matric_no',None) 803 804 entry_mode = mapping.get('entry_mode',None) 805 password = mapping.get('password',None) 804 806 msg = '' 805 807 student_id = mapping.get('id',None) 806 808 while True: 807 809 if student_id: 808 msg = "student_id must not be specified in create mode" 809 break 810 #msg = "student_id must not be specified in create mode" 811 #break 812 res = self.students_catalog(id = student_id) 813 if res: 814 msg = "student_id %s already assigned" % res[0].id 815 break 816 else: 817 student_id = self.waeup_tool.generateStudentId('?') 810 818 if jamb_reg_no and not entry_mode == 'transfer': 811 819 res = self.students_catalog(jamb_reg_no = jamb_reg_no) … … 821 829 msg = "jamb_reg_no or matric_no must be specified" 822 830 break 823 student_id = self.waeup_tool.generateStudentId('?')831 824 832 students_folder.invokeFactory('Student', student_id) 825 833 student_obj = getattr(students_folder,student_id) … … 860 868 student_obj.manage_setLocalRoles(student_id, ['Owner',]) 861 869 mapping['id'] = student_id 870 if password: 871 self.waeup_tool.makeStudentMember(student_id,password) 862 872 break 863 873 return student_id,msg,mapping … … 875 885 876 886 toexport_for_reimport = { 877 887 888 'application': 889 ('jamb_reg_no', 890 'entry_mode', 891 'entry_session', 892 'jamb_score', 893 'app_email', 894 'app_mobile', 895 'jamb_age', 896 'jamb_state', 897 'jamb_lga', 898 'jamb_sex', 899 'app_ac_pin', 900 'app_reg_pin', 901 'app_ac_date', 902 ), 903 'clearance': 904 ('matric_no', 905 'nationality', 906 'lga', 907 'birthday', 908 'clr_ac_pin', 909 'request_date', 910 'cleared_date', 911 'clearance_officer', 912 ), 913 'study_course': 914 ('study_course', 915 'current_level', 916 'current_session', 917 'current_verdict', 918 'previous_verdict', 919 ), 878 920 'personal': 879 921 ('firstname', … … 884 926 'phone', 885 927 'perm_address', 928 'marit_stat', 929 'disabled', 886 930 ), 887 'clearance':888 ('matric_no',889 'nationality',890 'lga',891 'birthday',892 ),893 'application':894 ('jamb_reg_no',895 'entry_mode',896 'entry_session',897 'jamb_score',898 'app_email',899 'jamb_age',900 'jamb_state',901 'jamb_lga',902 'jamb_sex',903 ),904 'study_course':905 ('study_course',906 'current_level',907 'current_session',908 'current_verdict',909 'previous_verdict',910 )911 931 } 912 932 -
WAeUP_SRP/trunk/profiles/default/layouts/import_student.xml
r3788 r3987 14 14 </property> 15 15 <property name="is_required">True</property> 16 <property name="label">Import Mode</property>17 <property name="label_edit">Import Mode</property>18 <property name="readonly_layout_modes"/>19 <property name="hidden_layout_modes"/>20 <property name="hidden_readonly_layout_modes"/>21 16 <property name="vocabulary">import_modes</property> 22 17 </widget> … … 27 22 </property> 28 23 <property name="is_required">False</property> 29 <property name="label">Id</property>30 <property name="label_edit">Id</property>31 <property name="readonly_layout_modes"/>32 <property name="hidden_layout_modes"/>33 <property name="hidden_readonly_layout_modes"/>34 24 </widget> 35 25 … … 39 29 <element value="reg_transition"/> 40 30 </property> 41 <property name="label">Transition</property> 42 <property name="label_edit">Transition</property> 43 <property name="is_required">True</property> 44 <property name="readonly_layout_modes"/> 45 <property name="hidden_layout_modes"/> 46 <property name="hidden_readonly_layout_modes"/> 31 <property name="is_required">True</property> 47 32 </widget> 48 33 <widget name="email" meta_type="Email Widget"> … … 52 37 </property> 53 38 <property name="is_required">False</property> 54 <property name="label">Email</property>55 <property name="label_edit">Email</property>56 <property name="readonly_layout_modes"/>57 <property name="hidden_layout_modes"/>58 <property name="hidden_readonly_layout_modes"/>59 39 </widget> 60 40 <widget name="app_email" meta_type="Email Widget"> … … 64 44 </property> 65 45 <property name="is_required">False</property> 66 <property name="label">Application Email</property>67 <property name="label_edit">Application Email</property>68 <property name="readonly_layout_modes"/>69 <property name="hidden_layout_modes"/>70 <property name="hidden_readonly_layout_modes"/>71 46 </widget> 72 47 <widget name="phone" meta_type="String Widget"> … … 75 50 <element value="phone"/> 76 51 </property> 77 <property name="label">Phone</property>78 <property name="label_edit">Phone</property>79 <property name="readonly_layout_modes"/>80 <property name="hidden_layout_modes"/>81 <property name="hidden_readonly_layout_modes"/>82 <property name="display_width">15</property>83 52 </widget> 84 53 <widget name="perm_address" meta_type="String Widget"> … … 87 56 <element value="perm_address"/> 88 57 </property> 89 <property name="label">Address</property>90 <property name="label_edit">Address</property>91 <property name="readonly_layout_modes"/>92 <property name="hidden_layout_modes"/>93 <property name="hidden_readonly_layout_modes"/>94 <property name="display_width">60</property>95 58 </widget> 96 59 <widget name="firstname" meta_type="String Widget"> … … 100 63 </property> 101 64 <property name="is_required">False</property> 102 <property name="label">First Name</property>103 <property name="label_edit">First Name</property>104 <property name="readonly_layout_modes"/>105 <property name="hidden_layout_modes"/>106 <property name="hidden_readonly_layout_modes"/>107 65 </widget> 108 66 <widget name="middlename" meta_type="String Widget"> … … 111 69 <element value="middlename"/> 112 70 </property> 113 <property name="label">Middle Name</property>114 <property name="label_edit">Middle Name</property>115 <property name="readonly_layout_modes"/>116 <property name="hidden_layout_modes"/>117 <property name="hidden_readonly_layout_modes"/>118 71 </widget> 119 72 <widget name="lastname" meta_type="String Widget"> … … 123 76 </property> 124 77 <property name="is_required">True</property> 125 <property name="label">Last Name</property>126 <property name="label_edit">Last Name</property>127 <property name="readonly_layout_modes"/>128 <property name="hidden_layout_modes"/>129 <property name="hidden_readonly_layout_modes"/>130 78 </widget> 131 79 <widget name="birthday" meta_type="DateTime Widget"> … … 134 82 <element value="birthday"/> 135 83 </property> 136 <property name="label">Birthday</property>137 <property name="label_edit">Birthday</property>138 <property name="readonly_layout_modes"/>139 <property name="hidden_layout_modes"/>140 <property name="hidden_readonly_layout_modes"/>141 84 <property name="view_format">%d/%m/%Y</property> 142 85 <property name="time_setting">False</property> … … 148 91 <element value="entry_mode"/> 149 92 </property> 150 <property name="label">Entry Mode</property> 151 <property name="label_edit">Entry Mode</property> 152 <property name="is_required">True</property> 153 <property name="readonly_layout_modes"/> 154 <property name="hidden_layout_modes"/> 155 <property name="hidden_readonly_layout_modes"/> 93 <property name="is_required">True</property> 156 94 <property name="vocabulary">entry_modes</property> 157 95 </widget> … … 161 99 <element value="current_mode"/> 162 100 </property> 163 <property name="label">Current Mode</property> 164 <property name="label_edit">Current Mode</property> 165 <property name="is_required">False</property> 166 <property name="readonly_layout_modes"/> 167 <property name="hidden_layout_modes"/> 168 <property name="hidden_readonly_layout_modes"/> 101 <property name="is_required">False</property> 169 102 <property name="vocabulary">entry_modes</property> 170 103 </widget> … … 174 107 <element value="current_session"/> 175 108 </property> 176 <property name="label">Current Session</property> 177 <property name="label_edit">Current Session</property> 178 <property name="is_required">True</property> 179 <property name="description">The last session school fee has been paid for</property> 180 <property name="help">The last session school fee has been paid for</property> 181 <property name="readonly_layout_modes"/> 182 <property name="hidden_layout_modes"/> 183 <property name="hidden_readonly_layout_modes"/> 109 <property name="is_required">True</property> 184 110 <property name="vocabulary">unset</property> 185 111 <property name="sorted">True</property> … … 190 116 <element value="current_level"/> 191 117 </property> 192 <property name="label">Current Level</property> 193 <property name="label_edit">Current Level</property> 194 <property name="is_required">True</property> 195 <property name="description">The last level school fee has been paid for</property> 196 <property name="help">The last level school fee has been paid for</property> 197 <property name="readonly_layout_modes"/> 198 <property name="hidden_layout_modes"/> 199 <property name="hidden_readonly_layout_modes"/> 118 <property name="is_required">True</property> 200 119 <property name="vocabulary">unset</property> 201 120 <property name="sorted">True</property> … … 206 125 <element value="current_verdict"/> 207 126 </property> 208 <property name="label">Current Verdict</property>209 <property name="label_edit">Current Verdict</property>210 <property name="description">The verdict of the current level</property>211 <property name="help">The verdict of the current level</property>212 <property name="readonly_layout_modes"/>213 <property name="hidden_layout_modes"/>214 <property name="hidden_readonly_layout_modes"/>215 127 <property name="vocabulary">verdicts</property> 216 128 <property name="sorted">True</property> … … 221 133 <element value="previous_verdict"/> 222 134 </property> 223 <property name="label">Previous Verdict</property>224 <property name="label_edit">Previous Verdict</property>225 <property name="description">The verdict of the previous level</property>226 <property name="help">The verdict of the previous level</property>227 <property name="readonly_layout_modes"/>228 <property name="hidden_layout_modes"/>229 <property name="hidden_readonly_layout_modes"/>230 135 <property name="vocabulary">verdicts</property> 231 136 <property name="sorted">True</property> … … 236 141 <element value="entry_session"/> 237 142 </property> 238 <property name="label">Entry Session</property> 239 <property name="label_edit">Entry Session</property> 240 <property name="is_required">False</property> 241 <property name="readonly_layout_modes"/> 242 <property name="hidden_layout_modes"/> 243 <property name="hidden_readonly_layout_modes"/> 143 <property name="is_required">False</property> 244 144 <property name="vocabulary">unset</property> 245 145 <property name="sorted">True</property> … … 250 150 <element value="jamb_reg_no"/> 251 151 </property> 252 <property name="label">JAMB Registration No</property>253 <property name="label_edit">JAMB Registration No</property>254 <property name="readonly_layout_modes"/>255 <property name="hidden_layout_modes"/>256 <property name="hidden_readonly_layout_modes"/>257 <property name="display_width">10</property>258 152 </widget> 259 153 … … 263 157 <element value="jamb_score"/> 264 158 </property> 265 <property name="label">JAMB Score</property>266 <property name="label_edit">JAMB Score</property>267 <property name="readonly_layout_modes"/>268 <property name="hidden_layout_modes"/>269 <property name="hidden_readonly_layout_modes"/>270 <property name="display_width">3</property>271 159 </widget> 272 160 … … 276 164 <element value="jamb_age"/> 277 165 </property> 278 <property name="label">JAMB Age</property>279 <property name="label_edit">JAMB Age</property>280 <property name="readonly_layout_modes"/>281 <property name="hidden_layout_modes">282 edit283 </property>284 <property name="hidden_readonly_layout_modes"/>285 166 </widget> 286 167 … … 290 171 <element value="jamb_sex"/> 291 172 </property> 292 <property name="label">JAMB Sex</property>293 <property name="label_edit">JAMB Sex</property>294 <property name="readonly_layout_modes"/>295 <property name="hidden_layout_modes">296 edit297 </property>298 <property name="hidden_readonly_layout_modes"/>299 173 </widget> 300 174 … … 304 178 <element value="jamb_lga"/> 305 179 </property> 306 <property name="label">JAMB LGA</property>307 <property name="label_edit">JAMB LGA</property>308 <property name="readonly_layout_modes"/>309 <property name="hidden_layout_modes"/>310 <property name="hidden_readonly_layout_modes"/>311 180 </widget> 312 181 … … 316 185 <element value="jamb_state"/> 317 186 </property> 318 <property name="label">JAMB State</property>319 <property name="label_edit">JAMB State</property>320 <property name="readonly_layout_modes"/>321 <property name="hidden_layout_modes"/>322 <property name="hidden_readonly_layout_modes"/>323 187 </widget> 324 188 … … 328 192 <element value="lga"/> 329 193 </property> 330 <property name="label">LGA</property>331 <property name="label_edit">LGA</property>332 <property name="readonly_layout_modes"/>333 <property name="hidden_layout_modes">334 edit335 </property>336 <property name="hidden_readonly_layout_modes"/>337 194 </widget> 338 195 … … 342 199 <element value="state"/> 343 200 </property> 344 <property name="label">State</property>345 <property name="label_edit">State</property>346 <property name="readonly_layout_modes"/>347 <property name="hidden_layout_modes">348 edit349 </property>350 <property name="hidden_readonly_layout_modes"/>351 201 </widget> 352 202 … … 356 206 <element value="matric_no"/> 357 207 </property> 358 <property name="label">Matriculation No</property>359 <property name="label_edit">Matriculation No</property>360 <property name="readonly_layout_modes"/>361 <property name="hidden_layout_modes"/>362 <property name="hidden_readonly_layout_modes"/>363 <property name="display_width">10</property>364 208 </widget> 365 209 <widget name="sex" meta_type="WAeUP Sex Widget"> … … 368 212 <element value="sex"/> 369 213 </property> 370 <property name="label">Sex</property> 371 <property name="label_edit">Sex</property> 372 <property name="is_required">True</property> 373 <property name="readonly_layout_modes"/> 374 <property name="hidden_layout_modes"/> 375 <property name="hidden_readonly_layout_modes"/> 214 <property name="is_required">True</property> 376 215 <property name="label_false">male</property> 377 216 <property name="label_true">female</property> … … 383 222 <element value="study_course"/> 384 223 </property> 385 <property name="label">Study Course Code</property> 386 <property name="label_edit">Study Course Code</property> 387 <property name="is_required">True</property> 388 <property name="readonly_layout_modes"/> 389 <property name="hidden_layout_modes"/> 390 <property name="hidden_readonly_layout_modes"/> 391 <property name="display_width">10</property> 392 </widget> 224 <property name="is_required">True</property> 225 </widget> 226 227 <widget name="password" meta_type="String Widget"> 228 <property name="title">Password</property> 229 <property name="fields"> 230 <element value="password"/> 231 </property> 232 </widget> 233 234 235 <widget name="app_ac_pin" meta_type="String Widget"> 236 <property name="fields"> 237 <element value="app_ac_pin"/> 238 </property> 239 </widget> 240 241 <widget name="app_reg_pin" meta_type="String Widget"> 242 <property name="fields"> 243 <element value="app_reg_pin"/> 244 </property> 245 </widget> 246 247 <widget name="app_ac_date" meta_type="String Widget"> 248 <property name="fields"> 249 <element value="app_ac_date"/> 250 </property> 251 </widget> 252 253 <widget name="app_mobile" meta_type="String Widget"> 254 <property name="fields"> 255 <element value="app_mobile"/> 256 </property> 257 </widget> 258 259 <widget name="request_date" meta_type="String Widget"> 260 <property name="fields"> 261 <element value="request_date"/> 262 </property> 263 </widget> 264 265 <widget name="clr_ac_pin" meta_type="String Widget"> 266 <property name="fields"> 267 <element value="clr_ac_pin"/> 268 </property> 269 </widget> 270 271 <widget name="cleared_date" meta_type="String Widget"> 272 <property name="fields"> 273 <element value="cleared_date"/> 274 </property> 275 </widget> 276 277 <widget name="clearance_officer" meta_type="String Widget"> 278 <property name="fields"> 279 <element value="clearance_officer"/> 280 </property> 281 </widget> 282 283 <widget name="marit_stat" meta_type="WAeUP Boolean Widget"> 284 <property name="fields"> 285 <element value="marit_stat"/> 286 </property> 287 </widget> 288 289 <widget name="disabled" meta_type="WAeUP Boolean Widget"> 290 <property name="fields"> 291 <element value="disabled"/> 292 </property> 293 </widget> 294 393 295 </object> -
WAeUP_SRP/trunk/profiles/default/schemas/import_student.xml
r3689 r3987 33 33 <field name="current_mode" meta_type="CPS String Field"/> 34 34 <field name="perm_address" meta_type="CPS String Field"/> 35 36 <field name="app_ac_pin" meta_type="CPS String Field"/> 37 <field name="app_reg_pin" meta_type="CPS String Field"/> 38 <field name="app_ac_date" meta_type="CPS DateTime Field"/> 39 <field name="app_mobile" meta_type="CPS String Field"/> 40 <field name="request_date" meta_type="CPS DateTime Field"/> 41 <field name="clr_ac_pin" meta_type="CPS String Field"/> 42 <field name="cleared_date" meta_type="CPS DateTime Field"/> 43 <field name="clearance_officer" meta_type="CPS String Field"/> 44 <field name="marit_stat" meta_type="CPS Boolean Field"/> 45 <field name="disabled" meta_type="CPS Boolean Field"/> 46 47 <field name="password" meta_type="CPS String Field"/> 35 48 </object>
Note: See TracChangeset for help on using the changeset viewer.