Changeset 1958 for WAeUP_SRP/trunk/skins/waeup_directory
- Timestamp:
- 25 Jun 2007, 19:30:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_directory/search_members.py
r1955 r1958 30 30 31 31 #mapping['homeless'] = True 32 result_fields = context.getDirectoryResultFields(dir.getId(),33 dir.title_field)34 ##result_fields = [{'id': 'sn', 'title': 'label_last_name', 'sort': 'asc'},35 ## {'id': 'givenName', 'title': 'label_first_name'},36 ## {'id': 'email', 'title': 'label_email'},37 ## {'id': id_field, 'title': 'label_user_name'},38 ##]32 #result_fields = context.getDirectoryResultFields(dir.getId(), 33 # dir.title_field) 34 result_fields = [{'id': 'sn', 'title': 'Last name', 'sort': 'asc'}, 35 {'id': 'givenName', 'title': 'First name'}, 36 {'id': 'email', 'title': 'Email address'}, 37 {'id': id_field, 'title': 'User name'}, 38 ] 39 39 if dir.getId() == "members": 40 40 result_fields.append({'id': 'groups', 'title': 'Group(s)'}) … … 102 102 if "groups" in return_fields: 103 103 item[1]['groups'] = " ".join(item[1]['groups']) 104 104 105 105 rendered = dir.search_members_results(results=results,result_fields=result_fields) 106 106 -
WAeUP_SRP/trunk/skins/waeup_directory/search_members_results.pt
r1899 r1958 25 25 <th i18n:translate="" tal:content="field/title">id</th> 26 26 </tal:block> 27 <th>Roles In</th>27 <th>Roles in</th> 28 28 </tr> 29 29 <tal:block repeat="result python:batch_list[0]">
Note: See TracChangeset for help on using the changeset viewer.