Ignore:
Timestamp:
17 Nov 2006, 16:06:47 (18 years ago)
Author:
joachim
Message:

cleaned up several things:

  1. the definitions for isManager, isStaff, and isClearanceOfficer

are now independant from eachother only based on roles or groups.
The Manager-Role is the superuser-role,
the is-Scripts document what is what.

since isStaff returns false if the member only has Manager-role,
in .cpsskins_theme it must now be:

if context.isStaff() or context.isManager():

return 'WAeUP_Backoffice'

todo: finish the merge of co_searchStudents and searchStudents

File:
1 edited

Legend:

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

    r845 r885  
    6464                             #psm = "%s, %s" % (psm,ds),
    6565                             students = items,
    66                              is_manager = is_manager,
     66                             allowed = True,
    6767                             )
    6868what = ds.get('search_mode')
     
    8787                             #psm = "%s, %s" % (psm,ds),
    8888                             students = items,
    89                              is_manager = is_manager,
     89                             allowed = True,
    9090                             )
    9191items = []
     
    162162                             #psm = "%d found QS = %s items: %s" % (len(items),query_step,items),
    163163                             students = students,
    164                              is_manager = is_manager,
     164                             allowed = True,
    165165                             )
    166166return context.students_manager_view(rendered = rend,
    167167                             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),
    168168                             students = students,
    169                              is_manager = is_manager,
     169                             allowed = True,
    170170                             )
Note: See TracChangeset for help on using the changeset viewer.