Ignore:
Timestamp:
29 Sep 2006, 19:07:33 (18 years ago)
Author:
joachim
Message:

added new methods isManager and isStudent, which are now used in all
getXXXInfo Scripts,
searchAcademics Form added - search not working yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py

    r598 r600  
    2222member_id = str(member)
    2323roles = member.getRolesInContext(context)
    24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    25 info['is_student'] = 'Student' in roles
     24info['is_manager'] = context.isManager()
     25info['is_student'] = context.isStudent()
    2626info['action'] = "%s" % context.absolute_url()
    2727info['choosen_ids'] = request.get('ids',[])
Note: See TracChangeset for help on using the changeset viewer.