Changeset 371 for WAeUP_SRP/trunk


Ignore:
Timestamp:
15 Aug 2006, 09:25:33 (18 years ago)
Author:
joachim
Message:
  1. faculty_edit_ removed from types/Faculty.xml
  2. Faculty of als Standard Institution Type (Academics.py)
  3. layouts/certificate_courses.xml code readonly in edit
  4. Certificate code und Certificate original code sollten nicht angezeigt

werden (in layouts/certificate_course.xml)

  1. 'Change object id' for portal_type Semester disabled (academics_contents.pt)
  2. Department Schema added

M profiles/default/schemas/certificate.xml
M profiles/default/schemas/department.xml
M profiles/default/layouts/certificate_course.xml
M profiles/default/types/Faculty.xml
M skins/waeup_default/id_rename.py
M skins/waeup_academics/academics_contents_display_buttons.py
M skins/waeup_academics/academics_contents.pt
M Academics.py

Location:
WAeUP_SRP/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r370 r371  
    8282            d['bank_code'] = faculty.get("Bankcode")
    8383            d["degree_grade"] = faculty.get("degree_grade")
     84            d['institution_type'] = 'faculty'
    8485            f.getContent().edit(mapping=d)
    8586        return self.academics.academics_contents()
  • WAeUP_SRP/trunk/profiles/default/layouts/certificate_course.xml

    r368 r371  
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
     9 <widget name="Title" meta_type="String Widget">
     10  <property name="title">Title</property>
     11  <property name="fields">
     12   <element value="Title"/>
     13  </property>
     14  <property name="label">Title</property>
     15  <property name="label_edit">Title</property>
     16  <property name="readonly_layout_modes"/>
     17  <property name="hidden_layout_modes">
     18   <element value="create"/>
     19   <element value="edit"/>
     20  </property>
     21  <property name="hidden_readonly_layout_modes"/>
     22 </widget>
    923 <widget name="admin_status" meta_type="String Widget">
    1024  <property name="title">Admin Status</property>
     
    2337   <element value="certificate_code"/>
    2438  </property>
    25   <property name="label">Certificate code</property>
    26   <property name="label_edit">Certificate code</property>
     39  <property name="label">Certificate Code</property>
     40  <property name="label_edit">Certificate Code</property>
    2741  <property name="readonly_layout_modes"/>
    2842  <property name="hidden_layout_modes">
     
    5468  <property name="label">Course Code</property>
    5569  <property name="label_edit">Course Code</property>
    56   <property name="readonly_layout_modes"/>
     70  <property name="readonly_layout_modes">
     71   <element value="edit"/>
     72  </property>
    5773  <property name="hidden_layout_modes"/>
    5874  <property name="hidden_readonly_layout_modes"/>
     
    7793  </row>
    7894  <row>
    79    <cell name="certificate_code"/>
    80   </row>
    81   <row>
    82    <cell name="certificate_code_org"/>
    83   </row>
    84   <row>
    8595   <cell name="core_or_elective"/>
    8696  </row>
  • WAeUP_SRP/trunk/profiles/default/schemas/certificate.xml

    r256 r371  
    1515 <field name="n_core" meta_type="CPS Int Field"/>
    1616 <field name="nr_years" meta_type="CPS Int Field"/>
     17 <field name="original_code" meta_type="CPS String Field"/>
    1718 <field name="probation_credits" meta_type="CPS Int Field"/>
    1819 <field name="promotion_credits" meta_type="CPS Int Field"/>
  • WAeUP_SRP/trunk/profiles/default/schemas/department.xml

    r199 r371  
    11<?xml version="1.0"?>
    2 <object name="department" meta_type="CPS Schema"/>
     2<object name="department" meta_type="CPS Schema">
     3 <field name="code" meta_type="CPS String Field"/>
     4</object>
  • WAeUP_SRP/trunk/profiles/default/types/Faculty.xml

    r370 r371  
    3535 <alias from="(Default)" to="academics_contents"/>
    3636 <alias from="create_do" to="waeup_document_create_do"/>
    37  <alias from="edit" to="faculty_edit"/>
    38  <alias from="edit_form" to="faculty_edit_form"/>
    3937 <alias from="view" to="academics_contents"/>
    4038 <action title="View" action_id="view" category="object" condition_expr=""
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt

    r370 r371  
    8686              tal:attributes="onclick python:'return window.confirm(\'%s\')' %
    8787              (cpsmcat('description_confirm_delete'), )" />
    88             <input type="submit" name="id_rename_form:method"
    89               class="context" value="button_rename" i18n:attributes="value" />
     88            <input tal:condition="python: context.portal_type not in ('Semester',)"
     89                   type="submit" name="id_rename_form:method"
     90              class="context" value="Change Object ID" i18n:attributes="value" />
    9091          </span>
    9192          </span>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_contents_display_buttons.py

    r370 r371  
    1414
    1515#if context.portal_type in ('Department','Certificate','StudyLevel'):
    16 if context.portal_type in ('Department','StudyLevel'):
     16if context.portal_type in ('Department','StudyLevel',):
    1717    return None
    1818return 1
  • WAeUP_SRP/trunk/skins/waeup_default/id_rename.py

    r370 r371  
    99REQUEST = context.REQUEST
    1010
     11if context.portal_type in ('CoursesFolder',):
     12    return REQUEST.RESPONSE.redirect(context.absolute_url() + \
     13                                ('/academics_contents?portal_status_message=%s' \
     14                                % ('Courses cannot be renamed',)))
     15   
    1116new_ids = REQUEST['new_ids']
    1217new_ids = [id.upper() for id in REQUEST['new_ids']]
Note: See TracChangeset for help on using the changeset viewer.