Last change
on this file since 1423 was
1077,
checked in by joachim, 18 years ago
|
files for custom
|
-
Property svn:keywords set to
Id
|
File size:
364 bytes
|
Rev | Line | |
---|
[845] | 1 | ## Script (Python) "isStudent" |
---|
[600] | 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
[874] | 7 | ##parameters= |
---|
[600] | 8 | ##title= |
---|
| 9 | ## |
---|
[805] | 10 | # $Id: isStudent.py 1077 2006-12-18 19:44:57Z joachim $ |
---|
[885] | 11 | |
---|
[1077] | 12 | member_id = str(context.portal_membership.getAuthenticatedMember()) |
---|
| 13 | if len(member_id) != 7: |
---|
| 14 | return False |
---|
| 15 | try: |
---|
| 16 | int(member_id[1:]) |
---|
| 17 | return True |
---|
| 18 | except: |
---|
| 19 | return False |
---|
Note: See
TracBrowser for help on using the repository browser.