Changeset 332


Ignore:
Timestamp:
18 Jul 2006, 09:54:24 (18 years ago)
Author:
joachim
Message:

academics_contents for Levels, add Course in Semesters

Location:
WAeUP_SRP/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r329 r332  
    385385            certificate.orderObjects('id')
    386386            first_s = getattr(l,'first')
     387            first_s.getContent().edit(mapping={'Title': 'First Semester'})
    387388            second_s = getattr(l,'second')
     389            second_s.getContent().edit(mapping={'Title': 'Second Semester'})
    388390            if cert_course.get('Semester') == '1':
    389391                semester = first_s
  • WAeUP_SRP/trunk/profiles/default/layouts/certificate.xml

    r329 r332  
    33 <property name="layout_create_method"></property>
    44 <property name="layout_edit_method"></property>
    5  <property name="layout_view_method">layout_waeup_fancy_view</property>
    6  <property name="style_prefix">layout_default_</property>
     5 <property name="layout_view_method"></property>
     6 <property name="style_prefix">layout_waeup_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
  • WAeUP_SRP/trunk/profiles/default/types/AccoFolder.xml

    r326 r332  
    2424 <property name="layouts">
    2525  <element value="common"/>
    26   <element value="metadata"/>
    2726 </property>
    2827 <property name="layout_clusters">
  • WAeUP_SRP/trunk/profiles/default/types/Semester.xml

    r319 r332  
    3232 <property name="storage_methods"/>
    3333 <property name="cps_is_portlet">False</property>
    34  <alias from="(Default)" to="temporary_view_all"/>
    35  <alias from="view" to="temporary_view_all"/>
     34 <alias from="(Default)" to="academics_contents"/>
     35 <alias from="view" to="academics_contents"/>
    3636 <action title="Standard View" action_id="view" category="object"
    37     condition_expr="" url_expr="string:${object_url}/temporary_view_all"
     37    condition_expr="" url_expr="string:${object_url}/academics_contents"
    3838    visible="True">
    3939  <permission value="View"/>
     
    4141 <action title="Book Semester Courses" action_id="book_semester_courses"
    4242    category="object" condition_expr=""
    43     url_expr="string:${object_url}/book_semester_courses" visible="True">
     43    url_expr="string:${object_url}/book_semester_courses" visible="False">
    4444  <permission value="Take ownership"/>
    4545 </action>
     
    4848    url_expr="string:${object_url}/cpsdocument_metadata" visible="False">
    4949  <permission value="Modify portal content"/>
    50   <permission value="University Manage"/>
    5150 </action>
    5251 <action title="Delegate" action_id="localroles" category="object"
     
    5453    visible="False">
    5554  <permission value="Modify portal content"/>
    56   <permission value="University Manage"/>
    57   <permission value="Student Manage"/>
    5855 </action>
     56 <action title="Add Course" action_id="new_entry" category="object"
     57    condition_expr=""
     58    url_expr="string:${object_url}/content_create?type_name=Course"
     59    visible="True"/>
    5960</object>
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r326 r332  
    2525 <property name="layouts">
    2626  <element value="common"/>
    27   <element value="metadata"/>
    2827 </property>
    2928 <property name="layout_clusters">
  • WAeUP_SRP/trunk/profiles/default/types/StudyLevel.xml

    r326 r332  
    2222  <element value="common"/>
    2323 </property>
    24  <property name="layouts">
    25   <element value="waeup_common"/>
    26  </property>
     24 <property name="layouts"/>
    2725 <property name="layout_clusters">
    2826  <element value="metadata:metadata"/>
     
    3129 <property name="storage_methods"/>
    3230 <property name="cps_is_portlet">False</property>
    33  <alias from="(Default)" to="level_view"/>
     31 <alias from="(Default)" to="academics_contents"/>
    3432 <alias from="created" to="level_created"/>
    35  <alias from="view" to="level_view"/>
     33 <alias from="view" to="academics_contents"/>
    3634 <action title="View" action_id="view" category="object" condition_expr=""
    37     url_expr="string:${object_url}/level_view" visible="True">
     35    url_expr="string:${object_url}/academics_contents" visible="True">
    3836  <permission value="View"/>
    3937 </action>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt

    r330 r332  
    4040           i18n:translate="label_info_tab_title"></a></strong></th>
    4141
    42       <th tal:condition="id_in_tabs" align="center">
     42      <th tal:condition="python:id_in_tabs and display_buttons" align="center">
    4343        <strong tal:define="sort_id python:sort_by=='id'"
    4444           tal:omit-tag="not:sort_id"><a href=""
    4545           tal:attributes="href python:'%s/changeDisplayParams?display_order=%s' % (context_url, test(sort_id and direction=='asc','id_desc','id_asc'))"
    46            i18n:translate="label_info_tab_id"></a></strong></th>
     46           i18n:translate="label_info_tab_id"></a>ID</strong></th>
    4747
    4848      <th tal:condition="typetext_in_tabs" align="center">
     
    125125
    126126
    127   <td tal:condition="id_in_tabs">
     127  <td tal:condition="python:id_in_tabs and display_buttons">
    128128    <span tal:content="info/id">ID</span>
    129129  </td>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents_display_buttons.py

    r329 r332  
    1313"""
    1414
    15 if context.portal_type in ('Department','Certificate'):
     15if context.portal_type in ('Department','Certificate','StudyLevel'):
    1616    return None
    1717return 1
  • WAeUP_SRP/trunk/skins/waeup_custom/getCustomDisplayParams.py

    r330 r332  
    3333                      'detail_tab_columns': ['long_title',
    3434                                             'id',
    35                                              'typetext',
     35                                              #'typetext',
    3636                                              #'size',
    3737                                              #'date',
Note: See TracChangeset for help on using the changeset viewer.