source: WAeUP_SRP/trunk/skins/waeup_default/isStudent.py @ 1403

Last change on this file since 1403 was 1077, checked in by joachim, 18 years ago

files for custom

  • Property svn:keywords set to Id
File size: 364 bytes
RevLine 
[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]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.