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

some fixes and renames

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py

    r875 r881  
    1 ## Script (Python) "co_search"
     1## Script (Python) "co_searchStudents"
    22##bind container=container
    33##bind context=context
     
    6262                      ob=default,
    6363                      layout_mode='edit',
    64                       formaction="co_search"
     64                      formaction="co_searchStudents"
    6565                      )
    6666if psm == '':
     
    160160if items:
    161161    for item in items:
    162         info = context.getStudentInfo(item)
    163         if context.isClearanceOfficer(info):
     162        #if context.isClearanceOfficer(info):
     163        droles = member.getRolesInContext(item)
     164        if "ClearanceOfficer" in droles:
     165            info = context.getStudentInfo(item)
    164166            students.append(info)
    165     return context.co_search_form(rendered = rend,
     167    return context.co_search_view(rendered = rend,
    166168                             psm = "%d,%d matching Students found QS = %s" %\
    167169                                    (len(review_set),len(search_set),query_step),
     
    170172                             is_manager = is_manager,
    171173                             )
    172 return context.co_search_form(rendered = rend,
     174return context.co_search_view(rendered = rend,
    173175                             psm = """Step: %s found: %s Your search for "%s" in %s with state %s failed.<br\>%s""" % (query_step,len(items),st,what,state,bools),
    174176                             students = students,
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r874 r881  
    2424
    2525if "ClearanceOfficers" in member.getGroups():
    26     return redirect("%s/co_search" % students_url)
     26    return redirect("%s/co_searchStudents" % students_url)
    2727if context.isManager():
    2828    return redirect("%s/searchStudents" % students_url)
Note: See TracChangeset for help on using the changeset viewer.