Changeset 337


Ignore:
Timestamp:
18 Jul 2006, 13:49:01 (18 years ago)
Author:
joachim
Message:

removed fields department, + faculty from certificate layout.
disabled table-header.

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/certificate.xml

    r332 r337  
    4242  <property name="size_max">20</property>
    4343 </widget>
    44  <widget name="department" meta_type="Select Widget">
    45   <property name="title">Department</property>
    46   <property name="fields">
    47    <element value="department"/>
    48   </property>
    49   <property name="is_required">True</property>
    50   <property name="label">Department</property>
    51   <property name="label_edit">Department</property>
    52   <property name="readonly_layout_modes"/>
    53   <property name="hidden_layout_modes"/>
    54   <property name="hidden_readonly_layout_modes"/>
    55   <property name="vocabulary">get_departments_voc</property>
    56  </widget>
    5744 <widget name="end_level" meta_type="Select Widget">
    5845  <property name="title">End Level</property>
     
    6653  <property name="hidden_readonly_layout_modes"/>
    6754  <property name="vocabulary">courselevel</property>
    68  </widget>
    69  <widget name="faculty" meta_type="Select Widget">
    70   <property name="title">Faculty</property>
    71   <property name="fields">
    72    <element value="faculty"/>
    73   </property>
    74   <property name="is_required">True</property>
    75   <property name="label">Faculty</property>
    76   <property name="label_edit">Faculty</property>
    77   <property name="readonly_layout_modes"/>
    78   <property name="hidden_layout_modes"/>
    79   <property name="hidden_readonly_layout_modes"/>
    80   <property name="vocabulary">get_faculties_voc</property>
    81  </widget>
    82  <widget name="heading" meta_type="String Widget">
    83   <property name="title">Heading</property>
    84   <property name="fields">
    85    <element value="heading"/>
    86   </property>
    87   <property name="label">Title</property>
    88   <property name="label_edit">Title</property>
    89   <property name="readonly_layout_modes"/>
    90   <property name="hidden_layout_modes"/>
    91   <property name="hidden_readonly_layout_modes"/>
    92  </widget>
    93  <widget name="m_prefix" meta_type="String Widget">
    94   <property name="title">MPrefix</property>
    95   <property name="fields">
    96    <element value="m_prefix"/>
    97   </property>
    98   <property name="label">MPrefix</property>
    99   <property name="label_edit">MPrefix</property>
    100   <property name="readonly_layout_modes"/>
    101   <property name="hidden_layout_modes"/>
    102   <property name="hidden_readonly_layout_modes"/>
    10355 </widget>
    10456 <widget name="max_load" meta_type="Int Widget">
     
    187139  </row>
    188140  <row>
    189    <cell name="faculty"/>
    190   </row>
    191   <row>
    192    <cell name="department"/>
    193   </row>
    194   <row>
    195141   <cell name="start_level"/>
    196142  </row>
     
    214160  </row>
    215161  <row>
    216    <cell name="m_prefix"/>
    217   </row>
    218   <row>
    219162   <cell name="nr_years"/>
    220163  </row>
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_content_lib_info_detail_tab.pt

    r334 r337  
    2121
    2222
    23   <thead>
     23  <thead tal:condition="nothing">
    2424    <tr>
    2525      <td tal:condition="display_buttons"> </td>
  • WAeUP_SRP/trunk/skins/waeup_custom/folder_delete.py

    r333 r337  
    11## Script (Python) "folder_delete"
    2 ##title=Delete objects from a folder
    3 ##parameters=
    4 REQUEST=context.REQUEST
    5 ret_url = context.absolute_url() + '/academics_contents'
     2##bind container=container
     3##bind context=context
     4##bind namespace=
     5##bind script=script
     6##bind subpath=traverse_subpath
     7##parameters=ids=[], REQUEST=None
     8##title=
     9##
     10# $Id: folder_delete.py 30246 2005-12-02 20:10:18Z fguillaume $
     11"""
     12FIXME: add docstring.
     13"""
    614
    7 if REQUEST.has_key( 'ids' ):
    8   context.manage_delObjects( REQUEST['ids'] )
    9   qs = '?portal_status_message=Deleted.'
     15from Products.CMFCore.utils import getToolByName
    1016
     17ti = getToolByName(context, 'portal_types').getTypeInfo(context.portal_type)
     18meth_id = ti.queryMethodID('view', 'folder_contents')
     19ret_url = context.absolute_url() + '/' + meth_id
     20
     21if ids:
     22    for id in ids:
     23        # XXX has to be called from here since the workflow doesn't handle the
     24        # deletion yet
     25        ob = getattr(context, id)
     26        from Products.CPSCore.EventServiceTool import getPublicEventService
     27        evtool = getPublicEventService(context)
     28        evtool.notifyEvent('workflow_delete', ob, {})
     29    context.manage_delObjects(ids)
     30    message = 'portal_status_message=psm_item(s)_deleted'
    1131else:
    12   qs = '?portal_status_message=Please+select+one+or+more+items+first.'
     32    message = 'portal_status_message=psm_select_at_least_one_document'
    1333
    14 
    15 return REQUEST.RESPONSE.redirect( ret_url + qs )
     34if REQUEST is not None:
     35    return REQUEST.RESPONSE.redirect(ret_url + '?' + message)
Note: See TracChangeset for help on using the changeset viewer.