Changeset 435


Ignore:
Timestamp:
28 Aug 2006, 17:05:19 (18 years ago)
Author:
joachim
Message:

removed metadata and common schemas from Student*
allow Catalog search for getFolderContents
added indizes jamb_reg_no matric_no to catalog.xml

Location:
WAeUP_SRP/trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r429 r435  
    3333    portal_type = meta_type
    3434    security = ClassSecurityInfo()
     35    use_catalog_for_folder_contents = True
    3536
    3637    security.declareProtected(ModifyPortalContent,"loadFullTimeStudentsFromCSV")###(
  • WAeUP_SRP/trunk/profiles/default/types/Semester.xml

    r397 r435  
    1717 </property>
    1818 <property name="allow_discussion">False</property>
    19  <property name="cps_is_searchable">True</property>
     19 <property name="cps_is_searchable">False</property>
    2020 <property name="cps_proxy_type">folder</property>
    2121 <property name="cps_display_as_document_in_listing">True</property>
    2222 <property name="schemas">
    23   <element value="metadata"/>
    24   <element value="common"/>
    2523 </property>
    2624 <property name="layouts"/>
    2725 <property name="layout_clusters">
    28   <element value="metadata:metadata"/>
     26  <element value=""/>
    2927 </property>
    3028 <property name="flexible_layouts"/>
  • WAeUP_SRP/trunk/profiles/default/types/Student.xml

    r428 r435  
    1919 </property>
    2020 <property name="allow_discussion">False</property>
    21  <property name="cps_is_searchable">True</property>
     21 <property name="cps_is_searchable">False</property>
    2222 <property name="cps_proxy_type">folder</property>
    2323 <property name="cps_display_as_document_in_listing">True</property>
    2424 <property name="schemas">
    25   <element value="metadata"/>
    26   <element value="common"/>
    2725  <element value="student"/>
    2826 </property>
     
    3129 </property>
    3230 <property name="layout_clusters">
    33   <element value="metadata:metadata"/>
     31  <element value=""/>
    3432 </property>
    3533 <property name="flexible_layouts"/>
     
    5351  <permission value="Modify portal content"/>
    5452 </action>
    55  <action title="action_folder_contents" action_id="contents" category="object"
    56     condition_expr="" url_expr="string:${object/absolute_url}/folder_contents"
    57     visible="False">
    58   <permission value="Modify portal content"/>
    59  </action>
    6053 <action title="Personal Data" action_id="PERSONAL" category="object"
    6154    condition_expr="python: object.getContent().memberIsOwner() and getattr(object,'PERSONAL',None)"
     
    6356  <permission value="Modify portal content"/>
    6457 </action>
    65  <action title="Register for Next Level" action_id="register_study_level"
    66     category="object"
    67     condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().isRegisteredForCurrentLevel()"
    68     url_expr="string:${object/absolute_url}/register_level" visible="True">
    69   <permission value="Modify portal content"/>
    70  </action>
    71  <action title="Book Accomodation" action_id="book_accomodation"
    72     category="object"
    73     condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().accommodationIsBooked()"
    74     url_expr="string:${object/absolute_url}/book_accommodation"
    75     visible="True">
    76   <permission value="Modify portal content"/>
    77  </action>
    78  <action title="Pay Hostel Fee" action_id="pay_hostel_fee" category="object"
    79     condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().accommodationIsPayed()"
    80     url_expr="string:${object/absolute_url}/pay_hostel_fee" visible="True">
    81   <permission value="Modify portal content"/>
    82  </action>
    83  <action title="(JAMB Data)" action_id="JAMB" category="object"
    84     condition_expr="python:object.getContent().memberIsOwner()"
    85     url_expr="string:${object/absolute_url}/JAMB" visible="True">
    86   <permission value="Modify portal content"/>
    87  </action>
    88  <action title="Book AccomModation" action_id="book_accommodation"
    89     category="object"
    90     condition_expr="python: object.getContent().memberIsOwner() and not object.getContent().accommodationIsBooked()"
    91     url_expr="string:${object/absolute_url}/book_accommodation"
    92     visible="True">
    93   <permission value="Modify portal content"/>
    94  </action>
    9558</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentAdmission.xml

    r428 r435  
    1313 <property name="allowed_content_types"/>
    1414 <property name="allow_discussion">False</property>
    15  <property name="cps_is_searchable">True</property>
     15 <property name="cps_is_searchable">False</property>
    1616 <property name="cps_proxy_type">document</property>
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
    19   <element value="metadata"/>
    20   <element value="common"/>
    2119  <element value="student_admission"/>
    2220 </property>
     
    2523 </property>
    2624 <property name="layout_clusters">
    27   <element value="metadata:metadata"/>
     25  <element value=""/>
    2826 </property>
    2927 <property name="flexible_layouts"/>
     
    4442  <permission value="Modify portal content"/>
    4543 </action>
    46  <action title="action_metadata" action_id="metadata" category="object"
    47     condition_expr="python:member and 'Manager' in member.getRoles()"
    48     url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    49   <permission value="Modify portal content"/>
    50  </action>
    5144</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r428 r435  
    1313 <property name="allowed_content_types"/>
    1414 <property name="allow_discussion">False</property>
    15  <property name="cps_is_searchable">True</property>
     15 <property name="cps_is_searchable">False</property>
    1616 <property name="cps_proxy_type">document</property>
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
    19   <element value="metadata"/>
    20   <element value="common"/>
    2119  <element value="student_clearance"/>
    2220 </property>
     
    2523 </property>
    2624 <property name="layout_clusters">
    27   <element value="metadata:metadata"/>
     25  <element value=""/>
    2826 </property>
    2927 <property name="flexible_layouts"/>
     
    4442  <permission value="Modify portal content"/>
    4543 </action>
    46  <action title="action_metadata" action_id="metadata" category="object"
    47     condition_expr="python:member and 'Manager' in member.getRoles()"
    48     url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    49   <permission value="Modify portal content"/>
    50  </action>
    5144</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r428 r435  
    1717 <property name="cps_display_as_document_in_listing">True</property>
    1818 <property name="schemas">
    19   <element value="metadata"/>
    20   <element value="common"/>
    2119  <element value="student_personal"/>
    2220 </property>
     
    2523 </property>
    2624 <property name="layout_clusters">
    27   <element value="metadata:metadata"/>
     25  <element value=""/>
    2826 </property>
    2927 <property name="flexible_layouts"/>
     
    4341  <permission value="Modify portal content"/>
    4442 </action>
    45  <action title="action_metadata" action_id="metadata" category="object"
    46     condition_expr="python:member and 'Manager' in member.getRoles()"
    47     url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    48   <permission value="Modify portal content"/>
    49  </action>
    5043</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentStudyCourse.xml

    r396 r435  
    1515 </property>
    1616 <property name="allow_discussion">False</property>
    17  <property name="cps_is_searchable">True</property>
     17 <property name="cps_is_searchable">False</property>
    1818 <property name="cps_proxy_type">folder</property>
    1919 <property name="cps_display_as_document_in_listing">True</property>
    2020 <property name="schemas">
    21   <element value="metadata"/>
    22   <element value="common"/>
    2321  <element value="student_study_course"/>
    2422 </property>
    2523 <property name="layouts">
    26   <element value="common"/>
    2724  <element value="student_study_course"/>
    2825 </property>
    2926 <property name="layout_clusters">
    30   <element value="metadata:metadata"/>
     27  <element value=""/>
    3128 </property>
    3229 <property name="flexible_layouts"/>
     
    3936  <permission value="View"/>
    4037 </action>
    41  <action title="action_metadata" action_id="metadata" category="object"
    42     condition_expr="" url_expr="string:${object_url}/cpsdocument_metadata"
    43     visible="False"/>
    4438 <action title="Delegate" action_id="localroles" category="object"
    4539    condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
     
    4741  <permission value="Modify portal content"/>
    4842 </action>
    49  <action title="action_folder_contents" action_id="contents" category="object"
    50     condition_expr="" url_expr="string:${object/absolute_url}/folder_contents"
    51     visible="False"/>
    52  <action title="Register for Next Level" action_id="register_study_level"
    53     category="object" condition_expr=""
    54     url_expr="string:${object/absolute_url}/register_level" visible="True">
    55   <permission value="Modify portal content"/>
    56  </action>
    5743</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudyLevel.xml

    r370 r435  
    1515 </property>
    1616 <property name="allow_discussion">False</property>
    17  <property name="cps_is_searchable">True</property>
     17 <property name="cps_is_searchable">False</property>
    1818 <property name="cps_proxy_type">folder</property>
    1919 <property name="cps_display_as_document_in_listing">True</property>
    2020 <property name="schemas">
    21   <element value="metadata"/>
    22   <element value="common"/>
    2321  <element value="study_level"/>
    2422 </property>
     
    2725 </property>
    2826 <property name="layout_clusters">
    29   <element value="metadata:metadata"/>
     27  <element value=""/>
    3028 </property>
    3129 <property name="flexible_layouts"/>
     
    3937  <permission value="View"/>
    4038 </action>
    41  <action title="Register for Next Year" action_id="new_entry"
    42     category="object"
    43     condition_expr="python:member and 'Student' in member.getRoles()"
    44     url_expr="string:${object_url}/register_level" visible="True"/>
    45  <action title="action_metadata" action_id="metadata" category="object"
    46     condition_expr="python:member and 'Manager' in member.getRoles()"
    47     url_expr="string:${object_url}/cpsdocument_metadata" visible="False"/>
    48  <action title="Delegate" action_id="localroles" category="object"
    49     condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
    50     visible="False"/>
    5139</object>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt

    r430 r435  
    9898        </td>
    9999      </span>
    100       <td align="center" tal:condition="type_in_tabs"
    101           tal:define="draggableclass python:test(not no_form  and sort_by is None, 'draggable droppable', '');
    102                   draggableid python:'draggable'+str(item.getId());
    103                   draggablemouseover
    104                     python:test(not no_form  and sort_by is None, 'setCursor(this, \'move\')', '')">
    105     <div tal:attributes="class draggableclass; id draggableid; onmouseover draggablemouseover">
     100      <td align="center" tal:condition="type_in_tabs">
    106101      <img tal:replace="structure python:here.getImgTag(info['icon'],
    107102                        base_url=base_url, title=info['type'])" />
    108     </div>
    109103  </td>
    110104  <td tal:condition="title_in_tabs">
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt

    r432 r435  
    157157    <tal:block define="info python:here.getContentInfo(item, level=1, cpsmcat=cpsmcat);
    158158                        review_state python:info['review_state'];
    159                         proxy_creator python:item.Creator();
    160159                        start repeat/item/start|nothing;
    161160                        end repeat/item/end|nothing">
Note: See TracChangeset for help on using the changeset viewer.