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

Last change on this file since 1571 was 1497, checked in by Henrik Bettermann, 18 years ago

beautifying

  • Property svn:keywords set to Id
File size: 457 bytes
Line 
1## Script (Python) "getEntryMode"
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 1497 2007-02-26 15:39:56Z henrik $
11
12digits = 8
13letters = 2
14new_em = 'UME'
15if jamb and len(jamb) >= (digits + letters) and jamb[:digits].isdigit()\
16   and jamb[digits:].isalpha():
17       if jamb[1] == '1':
18           ec = 'de'
19           new_em = 'DE'
20       else:
21           ec = 'unk'
22return new_em
Note: See TracBrowser for help on using the repository browser.