Changeset 2503
- Timestamp:
- 2 Nov 2007, 18:16:19 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2460 r2503 344 344 ds = DataStructure(data=item,datamodel=dm) 345 345 error_string = "" 346 #import pdb;pdb.set_trace() 346 347 for k in import_keys: 347 348 if not validators[k](ds,mode=mode): … … 609 610 def new_importCSV(self,filename="JAMB_data", 610 611 schema_id="application", 611 layout_id=" application_import",612 layout_id="import_application", 612 613 mode='add'): 613 614 """ import JAMB data """ … … 1373 1374 else: 1374 1375 normal.append(d) 1375 normal.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x, 1376 normal.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x, 1376 1377 "%(semester)s%(code)s" % y)) 1377 carry_overs.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x, 1378 carry_overs.sort(cmp=lambda x,y: cmp("%(semester)s%(code)s" % x, 1378 1379 "%(semester)s%(code)s" % y)) 1379 1380 return credits,carry_overs,normal -
WAeUP_SRP/base/skins/waeup_student/add_student.py
r1752 r2503 19 19 d = {} 20 20 mode = 'edit' 21 rendered,psm,ds = lt.renderLayout(layout_id= ' import_student',22 schema_id= ' import_student',21 rendered,psm,ds = lt.renderLayout(layout_id= 'add_student', 22 schema_id= 'add_student', 23 23 context=context, 24 24 mapping=validate and REQUEST, -
WAeUP_SRP/fceokene/profiles/default/layouts.xml
r2482 r2503 24 24 <object name="import" meta_type="CPS Layout"/> 25 25 <object name="import_student" meta_type="CPS Layout"/> 26 <object name="add_student" meta_type="CPS Layout"/> 26 27 <object name="members" meta_type="CPS Layout"/> 27 28 <object name="members_search" meta_type="CPS Layout"/> -
WAeUP_SRP/fceokene/profiles/default/layouts/application_pce.xml
r2343 r2503 9 9 <property name="validate_values_expr"></property> 10 10 11 <widget name="jamb_age" meta_type="String Widget"> 12 <property name="title">Age</property> 13 <property name="fields"> 14 <element value="jamb_age"/> 15 </property> 16 <property name="label">Age</property> 17 <property name="label_edit">Age</property> 18 <property name="description"></property> 19 <property name="help"></property> 20 <property name="is_i18n">False</property> 21 <property name="widget_mode_expr"></property> 22 <property name="readonly_layout_modes"> 23 <element value="edit"/> 24 </property> 25 <property name="hidden_layout_modes"> 26 <element value="create"/> 27 </property> 28 <property name="hidden_readonly_layout_modes"/> 29 <property name="css_class_expr">string:row</property> 30 </widget> 11 31 <widget name="date_of_birth" meta_type="DateTime Widget"> 12 32 <property name="title">Date of Birth</property> -
WAeUP_SRP/fceokene/profiles/default/layouts/import_student.xml
r2478 r2503 12 12 <property name="title">Id</property> 13 13 <property name="fields"> 14 <element value=" email"/>14 <element value="id"/> 15 15 </property> 16 16 <property name="is_required">False</property> … … 49 49 <property name="title">Application Email</property> 50 50 <property name="fields"> 51 <element value=" email"/>51 <element value="app_email"/> 52 52 </property> 53 53 <property name="is_required">False</property> … … 217 217 <property name="vocabulary">verdicts</property> 218 218 <property name="sorted">True</property> 219 </widget> 219 </widget> 220 220 <widget name="entry_session" meta_type="WAeUP Session Widget"> 221 221 <property name="title">Entry Session</property> … … 363 363 <property name="display_width">10</property> 364 364 </widget> 365 <table>366 <row>367 <cell name="firstname"/>368 </row>369 <row>370 <cell name="middlename"/>371 </row>372 <row>373 <cell name="lastname"/>374 </row>375 <row>376 <cell name="sex"/>377 </row>378 <row>379 <cell name="email"/>380 </row>381 <row>382 <cell name="phone"/>383 </row>384 <row>385 <cell name="entry_mode"/>386 </row>387 <row>388 <cell name="current_mode"/>389 </row>390 <row>391 <cell name="entry_session"/>392 </row>393 <row>394 <cell name="current_session"/>395 </row>396 <row>397 <cell name="current_level"/>398 </row>399 <row>400 <cell name="current_verdict"/>401 </row>402 <row>403 <cell name="previous_verdict"/>404 </row>405 <row>406 <cell name="jamb_reg_no"/>407 </row>408 <row>409 <cell name="jamb_score"/>410 </row>411 <row>412 <cell name="matric_no"/>413 </row>414 <row>415 <cell name="study_course"/>416 </row>417 418 </table>419 365 </object> -
WAeUP_SRP/fceokene/profiles/default/schemas.xml
r2482 r2503 26 26 <object name="import" meta_type="CPS Schema"/> 27 27 <object name="import_student" meta_type="CPS Schema"/> 28 <object name="add_student" meta_type="CPS Schema"/> 28 29 <object name="import_student_level_data" meta_type="CPS Schema"/> 29 30 <object name="import_student_course_results" meta_type="CPS Schema"/> -
WAeUP_SRP/fceokene/profiles/default/schemas/import_student.xml
r2478 r2503 15 15 <field name="jamb_score" meta_type="CPS Int Field"/> 16 16 <field name="jamb_age" meta_type="CPS String Field"/> 17 <field name="jamb_lga" meta_type="CPS String Field"/> 18 <field name="jamb_state" meta_type="CPS String Field"/> 17 19 <field name="lga" meta_type="CPS String Field"/> 18 20 <field name="state" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.