Changeset 453


Ignore:
Timestamp:
30 Aug 2006, 19:01:57 (18 years ago)
Author:
Henrik Bettermann
Message:

entry_session now in student_clearance
waeup_student_wf applied to all student object

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r452 r453  
    112112                dc = {'Title': 'Clearance Data'}
    113113                dc['matric_no'] = matric_no
    114                 lga = student.get('State') + ' / ' + student.get('LGA')               
     114                lga = student.get('State') + ' / ' + student.get('LGA')
    115115                dc['lga'] = lga
    116116                dc['nationality'] = student.get('Nationality')
    117117                dc['email'] = student.get('Emailaddress')
     118                css = student.get('CurrentSession') or '2004-2005'
     119                cs = int(css.split('-')[0]) - 2000
     120                cl = int(student.get('StudentLevel'))/100
     121                dc['entry_session'] = "200%s" % (cs - cl)               
    118122                d['firstname'] = student.get('FirstName')
    119123                d['middlename'] = student.get('MiddleName')
     
    138142                #d['faculty'] = student.get('Faculty')
    139143                #d['department'] = student.get('Dept')
    140                 d['course_major'] = certcode
    141                 css = student.get('CurrentSession') or '2004-2005'
    142                 cs = int(css.split('-')[0]) - 2000
    143                 cl = int(student.get('StudentLevel'))/100
    144                 d['entry_session'] = "200%s" % (cs - cl)
     144                d['study_course'] = certcode
    145145                sc.getContent().edit(mapping=d)
    146146                #
     
    379379        """compose title"""
    380380        content = self.getContent()
    381         return "Course Major"
     381        return "Study Course"
    382382
    383383
     
    426426        """compose title"""
    427427        return "Level %s" % self.aq_parent.getId()
    428    
     428
    429429
    430430InitializeClass(StudyLevel)
  • WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml

    r370 r453  
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_default_</property>
     6 <property name="style_prefix">layout_waeup_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
    9  <widget name="course_major" meta_type="String Widget">
    10   <property name="title">Course Major</property>
     9 <widget name="study_course" meta_type="String Widget">
     10  <property name="title">Certificate Code</property>
    1111  <property name="fields">
    12    <element value="course_major"/>
     12   <element value="study_course"/>
    1313  </property>
    1414  <property name="is_required">True</property>
    15   <property name="label">Course Major</property>
    16   <property name="label_edit">Course Major</property>
    17   <property name="readonly_layout_modes"/>
    18   <property name="hidden_layout_modes"/>
    19   <property name="hidden_readonly_layout_modes"/>
    20  </widget>
    21  <widget name="department" meta_type="Select Widget">
    22   <property name="title">Department</property>
    23   <property name="fields">
    24    <element value="department"/>
    25   </property>
    26   <property name="label">Department</property>
    27   <property name="label_edit">Department</property>
    28   <property name="readonly_layout_modes"/>
    29   <property name="hidden_layout_modes"/>
    30   <property name="hidden_readonly_layout_modes"/>
    31   <property name="vocabulary">get_departments_voc</property>
    32  </widget>
    33  <widget name="entry_reg_no" meta_type="String Widget">
    34   <property name="title">Entry Registration No</property>
    35   <property name="fields">
    36    <element value="entry_reg_no"/>
    37   </property>
    38   <property name="label">Entry Registration No</property>
    39   <property name="label_edit">Entry Registration No</property>
    40   <property name="readonly_layout_modes"/>
    41   <property name="hidden_layout_modes"/>
    42   <property name="hidden_readonly_layout_modes"/>
    43  </widget>
    44  <widget name="entry_session" meta_type="String Widget">
    45   <property name="title">Entry Session</property>
    46   <property name="fields">
    47    <element value="entry_session"/>
    48   </property>
    49   <property name="label">Entry Session</property>
    50   <property name="label_edit">Entry Session</property>
    51   <property name="readonly_layout_modes"/>
    52   <property name="hidden_layout_modes"/>
    53   <property name="hidden_readonly_layout_modes"/>
    54  </widget>
    55  <widget name="faculty" meta_type="Select Widget">
    56   <property name="title">Faculty</property>
    57   <property name="fields">
    58    <element value="faculty"/>
    59   </property>
    60   <property name="label">Faculty</property>
    61   <property name="label_edit">Faculty</property>
    62   <property name="readonly_layout_modes"/>
    63   <property name="hidden_layout_modes"/>
    64   <property name="hidden_readonly_layout_modes"/>
    65   <property name="vocabulary">get_faculties_voc</property>
    66  </widget>
    67  <widget name="matricel_no" meta_type="String Widget">
    68   <property name="title">Matricel No</property>
    69   <property name="fields">
    70    <element value="matricel_no"/>
    71   </property>
    72   <property name="label">Matricel No</property>
    73   <property name="label_edit">Matricel No</property>
     15  <property name="label">Certificate Code</property>
     16  <property name="label_edit">Certificate Code</property>
    7417  <property name="readonly_layout_modes"/>
    7518  <property name="hidden_layout_modes"/>
     
    7821 <table>
    7922  <row>
    80    <cell name="entry_reg_no"/>
    81   </row>
    82   <row>
    83    <cell name="matricel_no"/>
    84   </row>
    85   <row>
    86    <cell name="faculty"/>
    87   </row>
    88   <row>
    89    <cell name="department"/>
    90   </row>
    91   <row>
    92    <cell name="course_major"/>
    93   </row>
    94   <row>
    95    <cell name="entry_session"/>
     23   <cell name="study_course"/>
    9624  </row>
    9725 </table>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_study_course.xml

    r421 r453  
    11<?xml version="1.0"?>
    22<object name="student_study_course" meta_type="CPS Schema">
    3  <field name="course_major" meta_type="CPS String Field"/>
    4  <field name="department" meta_type="CPS String Field"/>
    5  <field name="faculty" meta_type="CPS String Field"/>
     3 <field name="study_course" meta_type="CPS String Field"/>
    64</object>
  • WAeUP_SRP/trunk/profiles/default/workflows.xml

    r440 r453  
    5757   <bound-workflow workflow_id="section_folder_wf"/>
    5858  </type>
     59  <type type_id="Jamb">
     60   <bound-workflow workflow_id="waeup_base_wf"/>
     61  </type>
     62  <type type_id="Members Workspace">
     63   <bound-workflow workflow_id="workspace_folder_wf"/>
     64  </type>
     65  <type type_id="ScratchCardBatch">
     66   <bound-workflow workflow_id="section_folder_wf"/>
     67  </type>
     68  <type type_id="ScratchCardBatchesFolder">
     69   <bound-workflow workflow_id="section_folder_wf"/>
     70  </type>
     71  <type type_id="Section">
     72   <bound-workflow workflow_id="section_folder_wf"/>
     73  </type>
    5974  <type type_id="Semester">
    6075   <bound-workflow workflow_id="section_folder_wf"/>
    6176  </type>
    6277  <type type_id="Student">
    63    <bound-workflow workflow_id="section_folder_wf"/>
     78   <bound-workflow workflow_id="waeup_student_wf"/>
     79  </type>
     80  <type type_id="StudentAdmission">
     81   <bound-workflow workflow_id="waeup_student_wf"/>
     82  </type>
     83  <type type_id="StudentClearance">
     84   <bound-workflow workflow_id="waeup_student_wf"/>
    6485  </type>
    6586  <type type_id="StudentDocuments">
    6687   <bound-workflow workflow_id="waeup_base_wf"/>
    6788  </type>
    68   <type type_id="StudentClearance">
     89  <type type_id="StudentElegibility">
    6990   <bound-workflow workflow_id="waeup_base_wf"/>
    7091  </type>
    71   <type type_id="StudentAdmission">
    72    <bound-workflow workflow_id="section_folder_wf"/>
     92  <type type_id="StudentEligibility">
     93   <bound-workflow workflow_id="waeup_base_wf"/>
    7394  </type>
    7495  <type type_id="StudentPersonal">
    75    <bound-workflow workflow_id="waeup_base_wf"/>
     96   <bound-workflow workflow_id="waeup_student_wf"/>
    7697  </type>
    7798  <type type_id="StudentStudyCourse">
    78    <bound-workflow workflow_id="waeup_base_wf"/>
     99   <bound-workflow workflow_id="waeup_student_wf"/>
    79100  </type>
    80101  <type type_id="StudentsFolder">
    81    <bound-workflow workflow_id="section_folder_wf"/>
     102   <bound-workflow workflow_id="waeup_student_wf"/>
    82103  </type>
    83104  <type type_id="StudyLevel">
     
    87108   <bound-workflow workflow_id="section_folder_wf"/>
    88109  </type>
    89   <type type_id="ScratchCardBatchesFolder">
    90    <bound-workflow workflow_id="section_folder_wf"/>
    91   </type>
    92   <type type_id="ScratchCardBatch">
    93    <bound-workflow workflow_id="section_folder_wf"/>
     110  <type type_id="Workspace">
     111   <bound-workflow workflow_id="workspace_folder_wf"/>
    94112  </type>
    95113 </bindings>
Note: See TracChangeset for help on using the changeset viewer.