Changeset 1705 for WAeUP_SRP/trunk


Ignore:
Timestamp:
24 Apr 2007, 18:18:05 (18 years ago)
Author:
joachim
Message:

New indexes and fields

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1702 r1705  
    250250                              'department',
    251251                              'level',
    252                               'study_mode',
     252                              'mode',
    253253                              'session',
    254254                              'verdict',
     
    315315        return getattr(doc,'current_level',None)
    316316
    317     def get_from_doc_study_mode(self,doc):
    318         "return the students study_mode"
    319         if doc is None:
    320             return None
    321         return getattr(doc,'current_study_mode',None)
     317    def get_from_doc_mode(self,doc):
     318        "return the students mode"
     319        if doc is None:
     320            return None
     321        cm = getattr(doc,'current_mode',None)
     322        return cm
     323       
     324
     325    def get_from_doc_session(self,doc):
     326        "return the students current_session"
     327        if doc is None:
     328            return None
     329        return getattr(doc,'current_session',None)
    322330
    323331    def get_from_doc_entry_session(self,doc):
     
    325333        if doc is None:
    326334            return None
     335        es = getattr(doc,'entry_session',None)
     336        if len(es) == 2:
     337            return es
    327338        try:
    328339            digit = int(doc.jamb_reg_no[0])
  • WAeUP_SRP/trunk/profiles/default/schemas/student_application.xml

    r1700 r1705  
    77 <field name="app_mobile" meta_type="CPS String Field"/>
    88 <field name="entry_mode" meta_type="CPS String Field"/>
     9 <field name="entry_session" meta_type="CPS String Field"/>
    910  <field name="objection_date" meta_type="CPS DateTime Field"/>
    1011  <field name="jamb_age" meta_type="CPS Int Field"/>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_study_course.xml

    r1700 r1705  
    77  </field>
    88  <field name="current_session" meta_type="CPS String Field"/>
    9   <field name="current_study_mode" meta_type="CPS String Field"/>
     9  <field name="current_mode" meta_type="CPS String Field"/>
    1010  <field name="current_level" meta_type="CPS String Field"/>
    1111  <field name="current_verdict" meta_type="CPS String Field"/>
  • WAeUP_SRP/trunk/profiles/default/students_catalog.xml

    r1700 r1705  
    3131  <indexed_attr value="entry_session"/>
    3232 </index>
     33 <index name="session" meta_type="FieldIndex">
     34  <indexed_attr value="session"/>
     35 </index>
    3336 <index name="department" meta_type="FieldIndex">
    3437  <indexed_attr value="department"/>
     
    3740  <indexed_attr value="level"/>
    3841 </index>
    39  <index name="study_mode" meta_type="FieldIndex">
    40   <indexed_attr value="study_mode"/>
     42 <index name="mode" meta_type="FieldIndex">
     43  <indexed_attr value="mode"/>
    4144 </index>
    4245 <index name="verdict" meta_type="FieldIndex">
     
    6265 <column value="phone"/>
    6366 <column value="level"/>
    64  <column value="study_mode"/>
     67 <column value="mode"/>
    6568 <column value="verdict"/>
    6669 <column value="entry_mode"/>
    6770 <column value="entry_session"/>
     71 <column value="session"/>
    6872</object>
Note: See TracChangeset for help on using the changeset viewer.