Changeset 427 for WAeUP_SRP


Ignore:
Timestamp:
26 Aug 2006, 09:53:13 (18 years ago)
Author:
Henrik Bettermann
Message:

types modified and FT student import changed

Location:
WAeUP_SRP/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r426 r427  
    101101                d = {'Title': 'Personal Data'}
    102102                s.invokeFactory('StudentClearance','clearance')
    103                 sc = s.personal
     103                sc = s.clearance
    104104                dc = {'Title': 'Clearance Data'}
    105105                dc['matric_no'] = matric_no
    106106                dc['jamb_reg_no'] = student.get('EntryRegNo')
    107                 dc['lga'] = student.get('LGA')
     107                lga = student.get('State') + ' / ' + student.get('LGA')               
     108                dc['lga'] = lga
    108109                dc['nationality'] = student.get('Nationality')
    109110                dc['email'] = student.get('Emailaddress')
     
    113114                d['former_surname'] = student.get('FormerSurname')
    114115                d['sex'] = student.get('Sex') == 'F'
    115                 d['for_state'] = student.get('State')
    116                 d['for_lga'] = student.get('LGA')
    117116                d['perm_address'] = student.get('PermanentAddress')
    118117                d['perm_city'] = student.get('PermanentAddressCity')
  • WAeUP_SRP/trunk/profiles/default/schemas/student.xml

    r199 r427  
    11<?xml version="1.0"?>
    22<object name="student" meta_type="CPS Schema">
    3  <field name="accommodation" meta_type="CPS String Field">
    4   <property name="is_searchabletext">True</property>
    5  </field>
    6  <field name="accommodation_date" meta_type="CPS DateTime Field">
    7   <property name="acl_write_roles">SectionReader</property>
    8  </field>
    9  <field name="accommodation_sc_id" meta_type="CPS String Field">
    10   <property name="is_searchabletext">True</property>
    11   <property name="acl_write_roles">SectionReader</property>
    12  </field>
    13  <field name="accommodation_sc_pin" meta_type="CPS String Field">
    14   <property name="is_searchabletext">True</property>
    15   <property name="acl_write_roles">SectionReader</property>
    16  </field>
    17  <field name="accommodation_sc_value" meta_type="CPS Float Field">
    18   <property name="default_expr">python:0.</property>
    19   <property name="is_searchabletext">True</property>
    20  </field>
    21  <field name="adm_check_date" meta_type="CPS DateTime Field"/>
    22  <field name="adm_check_sc_id" meta_type="CPS String Field">
    23   <property name="is_searchabletext">True</property>
    24   <property name="acl_write_roles">SectionReader</property>
    25  </field>
    26  <field name="adm_check_sc_pin" meta_type="CPS String Field">
    27   <property name="is_searchabletext">True</property>
    28   <property name="acl_write_roles">SectionReader</property>
    29  </field>
    30  <field name="adm_check_sc_value" meta_type="CPS Float Field">
    31   <property name="default_expr">python:0.</property>
    32   <property name="is_searchabletext">True</property>
    33  </field>
    34  <field name="clearance_date" meta_type="CPS DateTime Field">
    35   <property name="acl_write_roles">SectionReader</property>
    36  </field>
    37  <field name="clearance_sc_id" meta_type="CPS String Field">
    38   <property name="is_searchabletext">True</property>
    39   <property name="acl_write_roles">SectionReader</property>
    40  </field>
    41  <field name="clearance_sc_pin" meta_type="CPS String Field">
    42   <property name="is_searchabletext">True</property>
    43   <property name="acl_write_roles">SectionReader</property>
    44  </field>
    45  <field name="clearance_sc_value" meta_type="CPS Float Field">
    46   <property name="default_expr">python:0.</property>
    47   <property name="is_searchabletext">True</property>
    48  </field>
    49  <field name="course" meta_type="CPS String Field">
    50   <property name="is_searchabletext">True</property>
    51  </field>
    52  <field name="faculty" meta_type="CPS String Field">
    53   <property name="is_searchabletext">True</property>
    54  </field>
    55  <field name="hostel_fee_date" meta_type="CPS DateTime Field">
    56   <property name="acl_write_roles">SectionReader</property>
    57  </field>
    58  <field name="hostel_fee_sc_id" meta_type="CPS String Field">
    59   <property name="is_searchabletext">True</property>
    60   <property name="acl_write_roles">SectionReader</property>
    61  </field>
    62  <field name="hostel_fee_sc_pin" meta_type="CPS String Field">
    63   <property name="is_searchabletext">True</property>
    64   <property name="acl_write_roles">SectionReader</property>
    65  </field>
    66  <field name="hostel_fee_sc_value" meta_type="CPS Float Field">
    67   <property name="default_expr">python:0.</property>
    68   <property name="is_searchabletext">True</property>
    69  </field>
    70  <field name="jamb_is_admitted" meta_type="CPS Boolean Field"/>
    713</object>
  • WAeUP_SRP/trunk/profiles/default/types/Student.xml

    r407 r427  
    3636 <property name="storage_methods"/>
    3737 <property name="cps_is_portlet">False</property>
    38  <alias from="(Default)" to="temporary_view_all"/>
    39  <alias from="view" to="temporary_view_all"/>
     38 <alias from="(Default)" to="academics_contents"/>
     39 <alias from="view" to="academics_contents"/>
    4040 <action title="Standard View" action_id="view" category="object"
    4141    condition_expr="python:object.getContent().memberIsOwner() or (member and 'UniversityManager'in member.getRoles())"
     
    5656    condition_expr="" url_expr="string:${object/absolute_url}/folder_contents"
    5757    visible="False">
    58   <permission value="University Manage"/>
     58  <permission value="Modify portal content"/>
    5959 </action>
    6060 <action title="Personal Data" action_id="PERSONAL" category="object"
     
    7979  <permission value="Modify portal content"/>
    8080 </action>
    81  <action title="Book AccomModation" action_id="book_accommodation"
     81 <action title="Book Accomodation" action_id="book_accomodation"
    8282    category="object"
    8383    condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().accommodationIsBooked()"
     
    9696  <permission value="Modify portal content"/>
    9797 </action>
     98 <action title="Book AccomModation" action_id="book_accommodation"
     99    category="object"
     100    condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().accommodationIsBooked()"
     101    url_expr="string:${object/absolute_url}/book_accommodation"
     102    visible="True">
     103  <permission value="Modify portal content"/>
     104 </action>
    98105</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentAdmission.xml

    r421 r427  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addStudentAdmission</property>
    10  <property name="immediate_view">temporary_view_all</property>
     10 <property name="immediate_view"></property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    2222 </property>
    2323 <property name="layouts">
    24   <element value="common"/>
    2524  <element value="student_admission"/>
    2625 </property>
     
    3938 <action title="action_edit" action_id="edit" category="object"
    4039    condition_expr=""
    41     url_expr="string:${object_url}/student_admission_edit_form" visible="True">
     40    url_expr="string:${object_url}/student_admission_edit_form"
     41    visible="True">
    4242  <permission value="Modify portal content"/>
    4343 </action>
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r426 r427  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addStudentClearance</property>
    10  <property name="immediate_view">temporary_view_all</property>
     10 <property name="immediate_view"></property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
     19  <element value="metadata"/>
     20  <element value="common"/>
    1921  <element value="student_clearance"/>
    2022 </property>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r426 r427  
    88 <property name="product">WAeUP_SRP</property>
    99 <property name="factory">addStudentPersonal</property>
    10  <property name="immediate_view">temporary_view_all</property>
     10 <property name="immediate_view"></property>
    1111 <property name="global_allow">True</property>
    1212 <property name="filter_content_types">True</property>
     
    2222 </property>
    2323 <property name="layouts">
    24   <element value="common"/>
    2524  <element value="student_personal"/>
    2625 </property>
     
    3332 <alias from="(Default)" to="cpsdocument_view"/>
    3433 <alias from="view" to="cpsdocument_view"/>
    35  <action title="Standard View" action_id="view" category="object" condition_expr=""
    36     url_expr="string:${object_url}/cpsdocument_view" visible="True">
     34 <action title="Standard View" action_id="view" category="object"
     35    condition_expr="" url_expr="string:${object_url}/cpsdocument_view"
     36    visible="True">
    3737  <permission value="View"/>
    3838 </action>
    3939 <action title="action_edit" action_id="edit" category="object"
    40     condition_expr=""
    41     url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
     40    condition_expr="" url_expr="string:${object_url}/cpsdocument_edit_form"
     41    visible="True">
    4242  <permission value="Modify portal content"/>
    4343 </action>
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r425 r427  
    2121  <element value="metadata"/>
    2222  <element value="common"/>
    23   <element value="folder"/>
     23  <element value="students"/>
    2424 </property>
    25  <property name="layouts">
    26   <element value="common"/>
    27  </property>
     25 <property name="layouts"/>
    2826 <property name="layout_clusters">
    2927  <element value="metadata:metadata"/>
     
    3634 <action title="View" action_id="view" category="object" condition_expr=""
    3735    url_expr="string:${object_url}/academics_contents" visible="True">
     36  <permission value="View"/>
     37 </action>
     38 <action title="Add JAMB Data" action_id="add_jamb" category="object"
     39    condition_expr="" url_expr="string:${object/absolute_url}/create_jamb"
     40    visible="False"/>
     41 <action title="Check Admission Status" action_id="check_admission"
     42    category="object"
     43    condition_expr="object/portal_membership/isAnonymousUser"
     44    url_expr="string:${object/absolute_url}/check_admission" visible="False">
    3845  <permission value="View"/>
    3946 </action>
  • WAeUP_SRP/trunk/profiles/default/workflows.xml

    r422 r427  
    6767  </type>
    6868  <type type_id="StudentClearance">
    69    <bound-workflow workflow_id="section_folder_wf"/>
     69   <bound-workflow workflow_id="waeup_base_wf"/>
    7070  </type>
    7171  <type type_id="StudentAdmission">
     
    7676  </type>
    7777  <type type_id="StudentStudyCourse">
    78    <bound-workflow workflow_id="section_folder_wf"/>
     78   <bound-workflow workflow_id="waeup_base_wf"/>
    7979  </type>
    8080  <type type_id="StudentsFolder">
Note: See TracChangeset for help on using the changeset viewer.