Changeset 1962


Ignore:
Timestamp:
26 Jun 2007, 04:51:01 (18 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

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

    r1958 r1962  
    3131#mapping['homeless'] = True
    3232#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'},
     33#       
     34id_field = getattr(dir, 'id_field', 'id')
     35result_fields = [{'id': 'sn', 'title': 'Last Name', 'sort': 'asc'},
     36                  {'id': 'givenName', 'title': 'First Name'},
     37                  {'id': 'email', 'title': 'Email Address'},
     38                  {'id': id_field, 'title': 'User Name'},
    3839                  ]
    3940if dir.getId() == "members":
     
    107108return rendered, 'results'
    108109
    109 
Note: See TracChangeset for help on using the changeset viewer.