|
Last change
on this file since 8564 was
1087,
checked in by joachim, 20 years ago
|
|
optimized version (in custom)
|
-
Property svn:keywords set to
Id
|
|
File size:
421 bytes
|
| Rev | Line | |
|---|
| [867] | 1 | ## Script (Python) "isClearanceOfficer" |
|---|
| 2 | ##bind container=container |
|---|
| 3 | ##bind context=context |
|---|
| 4 | ##bind namespace= |
|---|
| 5 | ##bind script=script |
|---|
| 6 | ##bind subpath=traverse_subpath |
|---|
| [885] | 7 | ##parameters= |
|---|
| [867] | 8 | ##title= |
|---|
| 9 | ## |
|---|
| 10 | # $Id: isClearanceOfficer.py 1087 2006-12-18 22:13:31Z joachim $ |
|---|
| 11 | |
|---|
| [1087] | 12 | #from Products.zdb import set_trace |
|---|
| 13 | #set_trace() |
|---|
| 14 | if context.isStudent(): |
|---|
| 15 | return False |
|---|
| [867] | 16 | mtool = context.portal_membership |
|---|
| [885] | 17 | roles = mtool.getAuthenticatedMember().getRolesInContext(context) |
|---|
| [875] | 18 | return "ClearanceOfficer" in roles |
|---|
| [871] | 19 | |
|---|
Note: See
TracBrowser for help on using the repository browser.