Ignore:
Timestamp:
18 May 2007, 10:52:31 (17 years ago)
Author:
Henrik Bettermann
Message:

some fixes to display the correct object actions
also one fix regarding ticket #214

Location:
WAeUP_SRP/trunk/skins/waeup_directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_directory/getWAeUPDirectoryActions.py

    r953 r1796  
    4545    'name': 'cpsdir_label_edit_entry',
    4646    'category': 'object',
     47    'available': True,
     48    'visible': True,
     49    'allowed': True,
     50    'permissions': ('View',),
    4751    }
    4852
  • WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt

    r953 r1796  
    77<metal:block use-macro="here/main_template/macros/master">
    88
    9   <metal:block fill-slot="style_slot">
     9  <metal:block fill-slot="head_slot">
    1010    <tal:block define="global actions
    11       python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>
     11      python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>   
     12  </metal:block>
     13
     14  <metal:block fill-slot="style_slot"> 
    1215    <link rel="Stylesheet" type="text/css" href=""
    1316      tal:attributes="href string:${base_url}document.css" />
     
    1720
    1821  <metal:block fill-slot="main" tal:define="
    19    
    20     res python: dir.renderEntryDetailed(id);
    21     global rendered_main python: res[0];
    22     ds python: res[1];
    23     global title ds/?title_field|id;">
     22                                res python: dir.renderEntryDetailed(id);
     23                                global rendered_main python: res[0];
     24                                ds python: res[1];
     25                                global title ds/?title_field|id;">
    2426   
    2527    <h3>
     
    2729    </h3>
    2830
    29 
     31   
    3032    <div tal:replace="structure rendered_main">Rendered main...</div>
    3133    <input type="submit" name="back" i18n:attributes="value"
Note: See TracChangeset for help on using the changeset viewer.