Changeset 379 for WAeUP_SRP/trunk


Ignore:
Timestamp:
16 Aug 2006, 08:12:45 (18 years ago)
Author:
joachim
Message:

added import fields:
Courses: Category AdmStatus? FORMERCODE
Faculty: CollegeCode?
Certificate: MaxLoad? MaxElect?
CertficateCourse?: AdmStatus?

M profiles/default/schemas/certificate.xml
M profiles/default/schemas/course.xml
M profiles/default/schemas/faculty.xml
M profiles/default/layouts/certificate.xml
M profiles/default/layouts/course.xml
M profiles/default/layouts/faculty.xml
M Academics.py

Location:
WAeUP_SRP/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r371 r379  
    8383            d["degree_grade"] = faculty.get("degree_grade")
    8484            d['institution_type'] = 'faculty'
     85            d['Description'] = ''
     86            d['college_code'] = faculty.get('CollegeCode')
    8587            f.getContent().edit(mapping=d)
    8688        return self.academics.academics_contents()
     
    197199            if len(course_id) == 3:
    198200                course_id = "%s000" % course_id
    199 ##            elif course_id.startswith('CHEM'):
    200 ##                tid = course_id.replace('CHEM','CHE')
    201 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    202 ##                course_id = tid
    203 ##            elif course_id.startswith('DAIC'):
    204 ##                tid = course_id.replace('DAIC','DAC')
    205 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    206 ##                course_id = tid
    207 ##            elif course_id.startswith('DAIM'):
    208 ##                tid = course_id.replace('DAIM','DAM')
    209 ##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    210 ##                course_id = tid
    211201            elif len(course_id) > 10:
    212202                logger.info("invalid course_code %(CourseCode)s" % course)
     
    230220            dict['session'] = course.get('Session')
    231221            dict['category'] = course.get('Category')
     222            dict['adm_status'] = course.get('AdmStatus')
     223            dict['former_code'] = course.get('FORMERCODE')
    232224            pm = course.get('PassMark')
    233225            if pm.find(',') > -1:
  • WAeUP_SRP/trunk/profiles/default/layouts/certificate.xml

    r370 r379  
    4040  <property name="hidden_readonly_layout_modes"/>
    4141  <property name="vocabulary">courselevel</property>
     42 </widget>
     43 <widget name="m_prefix" meta_type="String Widget">
     44  <property name="title">MPREFIX</property>
     45  <property name="fields">
     46   <element value="m_prefix"/>
     47  </property>
     48  <property name="label">MPREFIX</property>
     49  <property name="label_edit">MPREFIX</property>
     50  <property name="readonly_layout_modes"/>
     51  <property name="hidden_layout_modes"/>
     52  <property name="hidden_readonly_layout_modes"/>
     53 </widget>
     54 <widget name="max_elect" meta_type="String Widget">
     55  <property name="title">Max Elect</property>
     56  <property name="fields">
     57   <element value="max_elect"/>
     58  </property>
     59  <property name="label">Max Elect</property>
     60  <property name="label_edit">Max Elect</property>
     61  <property name="readonly_layout_modes"/>
     62  <property name="hidden_layout_modes"/>
     63  <property name="hidden_readonly_layout_modes"/>
    4264 </widget>
    4365 <widget name="max_load" meta_type="Int Widget">
     
    146168  </row>
    147169  <row>
     170   <cell name="max_load"/>
     171  </row>
     172  <row>
    148173   <cell name="promotion_credits"/>
    149174  </row>
     
    163188   <cell name="n_core"/>
    164189  </row>
     190  <row>
     191   <cell name="max_elect"/>
     192  </row>
     193  <row>
     194   <cell name="m_prefix"/>
     195  </row>
    165196 </table>
    166197</object>
  • WAeUP_SRP/trunk/profiles/default/layouts/course.xml

    r376 r379  
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
     9 <widget name="adm_status" meta_type="String Widget">
     10  <property name="title">Adm Status</property>
     11  <property name="fields">
     12   <element value="adm_status"/>
     13  </property>
     14  <property name="label">Adm Status</property>
     15  <property name="label_edit">Adm Status</property>
     16  <property name="readonly_layout_modes"/>
     17  <property name="hidden_layout_modes"/>
     18  <property name="hidden_readonly_layout_modes"/>
     19 </widget>
    920 <widget name="category" meta_type="String Widget">
    1021  <property name="title">Category</property>
     
    2536  <property name="label">Credits</property>
    2637  <property name="label_edit">Credits</property>
     38  <property name="readonly_layout_modes"/>
     39  <property name="hidden_layout_modes"/>
     40  <property name="hidden_readonly_layout_modes"/>
     41 </widget>
     42 <widget name="former_code" meta_type="String Widget">
     43  <property name="title">Former Code</property>
     44  <property name="fields">
     45   <element value="former_code"/>
     46  </property>
     47  <property name="label">Former Code</property>
     48  <property name="label_edit">Former Code</property>
    2749  <property name="readonly_layout_modes"/>
    2850  <property name="hidden_layout_modes"/>
  • WAeUP_SRP/trunk/profiles/default/layouts/faculty.xml

    r370 r379  
    3939  <property name="hidden_readonly_layout_modes"/>
    4040 </widget>
     41 <widget name="college_code" meta_type="String Widget">
     42  <property name="title">College Code</property>
     43  <property name="fields">
     44   <element value="college_code"/>
     45  </property>
     46  <property name="label">College Code</property>
     47  <property name="label_edit">College Code</property>
     48  <property name="readonly_layout_modes"/>
     49  <property name="hidden_layout_modes"/>
     50  <property name="hidden_readonly_layout_modes"/>
     51 </widget>
    4152 <widget name="degree_grade" meta_type="String Widget">
    4253  <property name="title">Degree Grade</property>
     
    7586   <cell name="degree_grade"/>
    7687  </row>
     88  <row>
     89   <cell name="college_code"/>
     90  </row>
    7791 </table>
    7892</object>
  • WAeUP_SRP/trunk/profiles/default/schemas/certificate.xml

    r371 r379  
    1111 <field name="heading" meta_type="CPS String Field"/>
    1212 <field name="m_prefix" meta_type="CPS String Field"/>
     13 <field name="max_elect" meta_type="CPS String Field"/>
    1314 <field name="max_load" meta_type="CPS Int Field"/>
    1415 <field name="max_pass" meta_type="CPS Int Field"/>
  • WAeUP_SRP/trunk/profiles/default/schemas/course.xml

    r256 r379  
    11<?xml version="1.0"?>
    22<object name="course" meta_type="CPS Schema">
     3 <field name="adm_status" meta_type="CPS String Field"/>
    34 <field name="category" meta_type="CPS String Field"/>
    45 <field name="code" meta_type="CPS String Field">
     
    67 </field>
    78 <field name="credits" meta_type="CPS Int Field"/>
     9 <field name="former_code" meta_type="CPS String Field"/>
    810 <field name="org_code" meta_type="CPS String Field">
    911  <property name="is_searchabletext">True</property>
  • WAeUP_SRP/trunk/profiles/default/schemas/faculty.xml

    r370 r379  
    33 <field name="bank_code" meta_type="CPS String Field"/>
    44 <field name="code" meta_type="CPS String Field"/>
     5 <field name="college_code" meta_type="CPS String Field"/>
    56 <field name="degree_grade" meta_type="CPS String Field"/>
    67 <field name="institution_type" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.