try / except pour démarrer sans Solr.
[Plinn.git] / www / configureMembershipTool.zpt
1 <tal:header tal:replace="structure here/manage_page_header">header</tal:header>
2 <tal:tabs tal:replace="structure here/manage_tabs">tabs</tal:tabs>
3 <div tal:omit-tag="" i18n:domain="plinn">
4 <h2 i18n:translate="">Membership role mappings</h2>
5
6 <p i18n:translate="membership_role_mapping_explanations">Use this screen if you are using a userfolder other than the built-in folder to map
7 existing role names to roles understood by the CMF.</p>
8
9 <table border="1" cellpadding="3">
10 <tr>
11 <td class="form-label"><b i18n:translate="">Portal Role</b></td>
12 <td class="form-label"><b i18n:translate="">User Folder-defined Role</b></td>
13 <td>&nbsp;</td>
14 </tr>
15 <tr tal:repeat="role context/getPortalRoles">
16 <form method="post" action="setRoleMapping">
17 <td class="form-label">
18 <span tal:replace="role">role</span>
19 <input type="hidden" name="portal_role" tal:attributes="value role"/>
20 </td>
21 <td class="form-element">
22 <input type="text" size="30" name="userfolder_role"
23 tal:attributes="value python:context.getMappedRole(role)"/>
24 </td>
25 <td>
26 <input type="submit" value="Set Mapping" i18n:attributes="value"/></td>
27 </form>
28 </tr>
29 </table>
30
31 <p><hr/></p>
32
33 <h2 i18n:translate="member_creation_area_title">Creation of member areas</h2>
34
35 <p i18n:translate="member_creation_area_explanations">This feature controls whether users coming from an outside user source (such as an underlying
36 user folder) will have their own folder created upon first login or not</p>
37
38 <form method="post" action=".">
39
40 <div tal:condition="python:context.getMemberareaCreationFlag() == 1">
41 <p><b i18n:translate="">Folders are created upon first login.</b></p>
42 <input type="submit"
43 name="setMemberareaCreationFlag:method"
44 value="Turn folder creation off"
45 i18n:attributes="value"/><br/>
46 <p><b i18n:translate="">Select member area folder type to construct:</b>
47 <select name="member_folder_portal_type">
48 <option tal:condition="python:context.getMemberAreaPortalType() not in context.portal_types.objectIds('Factory-based Type Information')"
49 disabled="disabled" i18n:translate="">Unknown type</option>
50 <option tal:repeat="pt python:context.portal_types.objectIds('Factory-based Type Information')"
51 tal:attributes="value pt;
52 selected python:pt == context.getMemberAreaPortalType()"
53 tal:content="pt"></option>
54 </select>
55 <input type="submit" name="setMemberAreaPortalType:method" value="Change" i18n:attributes="value"/>
56 <div tal:condition="python:context.getMemberAreaPortalType() not in context.portal_types.objectIds('Factory-based Type Information')"
57 style="color:#f00"
58 i18n:translate="">WARNING: The current portal type is unknown. You must change the value to enable the member area creation.</div>
59 </div>
60
61 <div tal:condition="python:context.getMemberareaCreationFlag() == 0">
62 <p>
63 <b i18n:translate="">No Folders are created.</b>
64 <input type="submit"
65 name="setMemberareaCreationFlag:method"
66 value="Turn folder creation on"
67 i18n:attributes="value"/>
68 </div>
69
70 </form>
71 <p><hr/></p>
72
73 <h2 i18n:translate="">Base folder of members' folders</h2>
74
75 <p i18n:translate="">This folder has to be in the same container as the membership tool.</p>
76
77 <form action="manage_setMembersFolderById" method="post">
78 <table cellspacing="2">
79 <tr>
80 <td align="left" valign="top">
81 <div class="form-label" i18n:translate="">Members folder id</div>
82 </td>
83 <td align="left" valign="top">
84 <input class="form-element" type="text" name="id"
85 tal:attributes="value context/membersfolder_id"/>
86 </td>
87 </tr>
88 <tr>
89 <td>
90 </td>
91 <td align="left" valign="top">
92 <input class="form-element" type="submit" value="Change" i18n:attributes="value"/>
93 </td>
94 </tr>
95 </table>
96 </form>
97 </div>
98 <tal:footer tal:replace="structure here/manage_page_footer">footer</tal:footer>