source: WAeUP_SRP/trunk/skins/waeup_student/getEntryMode.py @ 6290

Last change on this file since 6290 was 1827, checked in by Henrik Bettermann, 17 years ago

ticket #230

  • Property svn:keywords set to Id
File size: 490 bytes
RevLine 
[1497]1## Script (Python) "getEntryMode"
[1458]2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=jamb
8##title=
9##
10# $Id: getEntryMode.py 1827 2007-05-29 08:11:16Z henrik $
11
[1827]12# this method is only used for full-time returning students (impported into returning_import)
13
[1458]14digits = 8
15letters = 2
[1827]16em = 'ume_ft'
[1458]17if jamb and len(jamb) >= (digits + letters) and jamb[:digits].isdigit()\
18   and jamb[digits:].isalpha():
19       if jamb[1] == '1':
[1827]20           em = 'de_ft'
21return em
Note: See TracBrowser for help on using the repository browser.