source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_default/isStudent.py @ 14312

Last change on this file since 14312 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
12member_id = str(context.portal_membership.getAuthenticatedMember())
13if len(member_id) != 7:
14    return False
15try:
16    int(member_id[1:])
17    return True
18except:
19    return False
Note: See TracBrowser for help on using the repository browser.