Changeset 924 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
22 Nov 2006, 16:54:23 (18 years ago)
Author:
joachim
Message:

removed username from member_search mask, because there is no easy way to
not search for student-members. In my opinion search for firstname, lastname
and email is sufficient.
The local-role SectionReader? is set for Authenticated in exportimport.py,
but now the import takes 3 times as long. I think we have to remove this
setting from exportimport.

Location:
WAeUP_SRP/trunk/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/getCPSCandidateLocalRoles.py

    r919 r924  
    2020
    2121
    22 #return mtool.getCPSCandidateLocalRoles(context)
     22allowed_roles = mtool.getCPSCandidateLocalRoles(context)
    2323
    2424
    25 if member.id == 'admin'
    26   return ['SectionReader','SectionManager','ClearanceOfficer', 'SectionOfficer']
     25if member.id in ("admin","perry"):
     26    return ['SectionReader','SectionManager','ClearanceOfficer', 'SectionOfficer']
    2727return ['ClearanceOfficer', 'SectionOfficer']
  • WAeUP_SRP/trunk/skins/waeup_directory/layout_waeup_dir_view.pt

    r916 r924  
    11<tal:block define="layout options/layout;
    2                    dirname request/dirname;
     2                   dirname string:members;
    33                   dir here/portal_directories/?dirname;
    44                   id_field dir/id_field;
  • WAeUP_SRP/trunk/skins/waeup_directory/search_members.py

    r917 r924  
    2424        mapping[key] = value
    2525
    26 result_fields = context.getDirectoryResultFields(dir.getId(),
    27                                                  dir.title_field)
     26#result_fields = context.getDirectoryResultFields(dir.getId(),
     27#                                                 dir.title_field)
     28result_fields = [{'id': 'sn', 'title': 'label_last_name', 'sort': 'asc'},
     29                  {'id': 'givenName', 'title': 'label_first_name'},
     30                  {'id': 'email', 'title': 'label_email'},
     31                  #{'id': id_field, 'title': 'label_user_name'},
     32                  ]
    2833
    2934return_fields = []
Note: See TracChangeset for help on using the changeset viewer.