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

Last change on this file since 1494 was 1458, checked in by joachim, 18 years ago

new getEntryMode
used by reindex_entry_mode modification enabled

  • Property svn:keywords set to Id
File size: 455 bytes
Line 
1## Script (Python) "getVerdict"
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 1458 2007-02-21 17:15:00Z joachim $
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.