Changeset 953


Ignore:
Timestamp:
27 Nov 2006, 22:03:04 (18 years ago)
Author:
Henrik Bettermann
Message:

member directory acl permission, schema and layouts changed
not yet optimized

Location:
WAeUP_SRP/trunk
Files:
5 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r945 r953  
    3232     category="user"
    3333     condition_expr="python:member and member.has_role("Member")"
    34      url_expr="string:${portal_url}/cpsdirectory_entry_view?dirname=members&id=${member}"
     34     url_expr="string:${portal_url}/member_view?dirname=members&id=${member}"
    3535     visible="True">
    3636   <permission>View</permission>
     
    9393  </action>
    9494  <action title="Directories" action_id="directories" category="global"
    95      condition_expr="python:not portal.portal_membership.isAnonymousUser()"
    96      url_expr="string:${portal_url}/cpsdirectory_view" visible="False">
     95     condition_expr="here/isSectionManager"
     96     url_expr="string:${portal_url}/cpsdirectory_view" visible="True">
    9797   <permission>Modify portal content</permission>
    9898  </action>
  • WAeUP_SRP/trunk/profiles/default/layouts/members.xml

    r916 r953  
    3232  </property>
    3333  <property name="is_required">True</property>
    34   <property name="label">label_email</property>
    35   <property name="label_edit">label_email</property>
    36   <property name="description">Member email</property>
     34  <property name="label">Email</property>
     35  <property name="label_edit">Email</property>
     36  <property name="description"></property>
    3737  <property name="is_i18n">True</property>
    3838  <property name="size_max">0</property>
     
    4242   <element value="fullname"/>
    4343  </property>
    44   <property name="label">label_full_name</property>
    45   <property name="label_edit">label_full_name</property>
    46   <property name="description">Member full name</property>
     44  <property name="label">Full Name</property>
     45  <property name="label_edit">Full Name</property>
     46  <property name="description"></property>
    4747  <property name="is_i18n">True</property>
    4848  <property name="hidden_layout_modes">
     
    5656   <element value="givenName"/>
    5757  </property>
    58   <property name="label">label_first_name</property>
    59   <property name="label_edit">label_first_name</property>
    60   <property name="description">Member first name</property>
     58  <property name="label">First Name</property>
     59  <property name="label_edit">First Name</property>
     60  <property name="description"></property>
    6161  <property name="is_i18n">True</property>
    6262 </widget>
     
    6565   <element value="groups"/>
    6666  </property>
    67   <property name="label">label_groups</property>
    68   <property name="label_edit">label_groups</property>
    69   <property name="description">Member groups</property>
     67  <property name="label">Groups</property>
     68  <property name="label_edit">Groups</property>
     69  <property name="description"></property>
    7070  <property name="is_i18n">True</property>
    7171  <property name="vocabulary">groups</property>
     
    8989  </property>
    9090  <property name="is_required">True</property>
    91   <property name="label">label_user_name</property>
    92   <property name="label_edit">label_user_name</property>
    93   <property name="description">Member login</property>
     91  <property name="label">User Name</property>
     92  <property name="label_edit">User Name</property>
     93  <property name="description"></property>
    9494  <property name="is_i18n">True</property>
    9595  <property name="readonly_layout_modes">
     
    116116  <property name="size_max">0</property>
    117117 </widget>
    118  <widget name="roles" meta_type="Generic MultiSelect Widget">
    119   <property name="fields">
    120    <element value="roles"/>
    121   </property>
    122   <property name="label">label_roles</property>
    123   <property name="label_edit">label_roles</property>
    124   <property name="description">Member roles</property>
    125   <property name="is_i18n">True</property>
    126   <property name="vocabulary">global_roles</property>
    127   <property name="translated">True</property>
    128   <property name="render_format">checkbox</property>
    129  </widget>
     118<widget name="roles" meta_type="Generic MultiSelect Widget">
     119 <property name="fields">
     120  <element value="roles"/>
     121 </property>
     122 <property name="label">Roles</property>
     123 <property name="label_edit">Roles</property>
     124 <property name="description"></property>
     125 <property name="is_i18n">True</property>
     126 <property name="readonly_layout_modes"/>
     127 <property name="hidden_layout_modes"/>
     128 <property name="hidden_readonly_layout_modes"/>
     129 <property name="hidden_if_expr">not: context/isSectionManager</property>
     130 <property name="vocabulary">global_roles</property>
     131 <property name="translated">True</property>
     132 <property name="render_format">checkbox</property>
     133</widget>
    130134 <widget name="sn" meta_type="String Widget">
    131135  <property name="fields">
     
    133137  </property>
    134138  <property name="is_required">True</property>
    135   <property name="label">label_last_name</property>
    136   <property name="label_edit">label_last_name</property>
    137   <property name="description">Member last name</property>
     139  <property name="label">Last Name</property>
     140  <property name="label_edit">Last Name</property>
     141  <property name="description"></property>
    138142  <property name="is_i18n">True</property>
    139143 </widget>
  • WAeUP_SRP/trunk/profiles/default/schemas/members.xml

    r910 r953  
    66 </field>
    77 <field name="email" meta_type="CPS String Field">
    8   <property name="acl_write_roles">Manager; Owner</property>
     8  <property name="acl_write_roles">Manager; Owner; SectionOfficer</property>
    99 </field>
    1010 <field name="fullname" meta_type="CPS String Field">
     
    2121 </field>
    2222 <field name="givenName" meta_type="CPS String Field">
    23   <property name="acl_write_roles">Manager; Owner</property>
     23  <property name="acl_write_roles">Manager; Owner; SectionOfficer</property>
    2424 </field>
    2525 <field name="groups" meta_type="CPS String List Field">
    26   <property name="acl_write_roles">Manager</property>
     26  <property name="acl_write_roles">Manager; SectionOfficer</property>
    2727 </field>
    2828 <field name="homeless" meta_type="CPS Int Field">
    2929  <property name="default_expr">python: 1</property>
    30   <property name="acl_write_roles">Manager</property>
     30  <property name="acl_write_roles">Manager; SectionOfficer</property>
    3131 </field>
    3232 <field name="id" meta_type="CPS String Field"/>
    3333 <field name="password" meta_type="CPS Password Field">
    34   <property name="acl_write_roles">Manager; Owner</property>
     34  <property name="acl_write_roles">Manager; Owner; SectionOfficer</property>
    3535 </field>
    3636 <field name="roles" meta_type="CPS String List Field">
     
    3939 </field>
    4040 <field name="sn" meta_type="CPS String Field">
    41   <property name="acl_write_roles">Manager; Owner</property>
     41  <property name="acl_write_roles">Manager; Owner; SectionOfficer</property>
    4242 </field>
    4343</object>
  • WAeUP_SRP/trunk/skins/waeup_directory/layout_waeup_dir_edit.pt

    r923 r953  
    6767    <tal:block condition="has_edits">
    6868    <input type="submit" class="standalone"
    69       name="cpsdirectory_entry_edit_form:method"
     69      name="member_edit_form:method"
    7070      value="button_change" i18n:attributes="value"
    7171      tal:condition="not:creation" />
    7272    <input type="submit" class="standalone"
    73       name="cpsdirectory_entry_create_form:method"
     73      name="member_create_form:method"
    7474      value="button_create" i18n:attributes="value"
    7575      tal:condition="creation" />
  • WAeUP_SRP/trunk/skins/waeup_directory/member_view.pt

    r935 r953  
    66  "/>
    77<metal:block use-macro="here/main_template/macros/master">
     8
    89  <metal:block fill-slot="style_slot">
    9     <tal:block define="dummy
    10       python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/>
    1110    <tal:block define="global actions
    12       python:context.getDirectoryActions(actions, dirname, dir, 'view', id)"/>
    13 
     11      python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'view', id)"/>
    1412    <link rel="Stylesheet" type="text/css" href=""
    1513      tal:attributes="href string:${base_url}document.css" />
    1614  </metal:block>
    1715
    18   <metal:block fill-slot="header">
    19     <h1>
    20       <span i18n:translate="" tal:content="dirtitle" />:
    21       <span i18n:translate="cpsdir_label_view_entry">view entry</span>
    22     </h1>
    23     <div class="description">
    24     </div>
    25   </metal:block>
     16
    2617
    2718  <metal:block fill-slot="main" tal:define="
    28     title_field dir/title_field;
     19   
    2920    res python: dir.renderEntryDetailed(id);
    3021    global rendered_main python: res[0];
    3122    ds python: res[1];
    3223    global title ds/?title_field|id;">
     24   
     25    <h3>
     26      <span tal:content="ds/fullname" />     
     27    </h3>
     28
    3329
    3430    <div tal:replace="structure rendered_main">Rendered main...</div>
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members.py

    r930 r953  
    5656    results = dir.searchEntries(return_fields=return_fields, **mapping)
    5757except SearchSizeLimitExceeded, e:
    58     rendered = dir.cpsdirectory_entry_search_errors(exception=e)
     58    rendered = dir.member_search_errors(exception=e)
    5959    return rendered, 'results'
    6060
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members_form.pt

    r916 r953  
    99      python:context.setDirectoryBreadCrumbs(request, dirname, dir, dirtitle)"/>
    1010    <tal:block define="global actions
    11       python:context.getDirectoryActions(actions, dirname, dir, 'search')"/>
     11      python:context.getWAeUPDirectoryActions(actions, dirname, dir, 'search')"/>
    1212
    1313    <link rel="Stylesheet" type="text/css" href=""
     
    2727    global portal_status_message python: (validate and not ok and
    2828      'psm_content_error') or request.form.get('portal_status_message', '');">
    29     <h1>
    30       <span i18n:translate="" tal:content="dirtitle" />:
    31       <span tal:condition="python: ok == 'results'"
    32         i18n:translate="">cpsdir_label_results
    33       </span>
    34       <span tal:condition="python: ok != 'results'"
    35          i18n:translate="cpsdir_label_search_entry">search an entry
    36       </span>
    37     </h1>
    38 
     29    <h3>
     30      Search Member Section
     31    </h3>
     32    <br />
    3933    <div tal:replace="structure rendered_main">Rendered main...</div>
    4034  </metal:block>
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members_results.pt

    r930 r953  
    1616  ">
    1717  <div style="padding-left: 1.5em">
    18     <form action="cpsdirectory_entry_delete" method="post">
     18    <form action="member_delete" method="post">
    1919      <table tal:condition="results" summary="search result list">
    2020        <tr>
Note: See TracChangeset for help on using the changeset viewer.