Last change
on this file since 7187 was
1077,
checked in by joachim, 18 years ago
|
files for custom
|
-
Property svn:keywords set to
Id
|
File size:
364 bytes
|
Line | |
---|
1 | ## Script (Python) "isStudent" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters= |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: isStudent.py 1077 2006-12-18 19:44:57Z joachim $ |
---|
11 | |
---|
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.