Last change
on this file since 1838 was
1827,
checked in by Henrik Bettermann, 17 years ago
|
ticket #230
|
-
Property svn:keywords set to
Id
|
File size:
490 bytes
|
Rev | Line | |
---|
[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] | 14 | digits = 8 |
---|
| 15 | letters = 2 |
---|
[1827] | 16 | em = 'ume_ft' |
---|
[1458] | 17 | if 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' |
---|
| 21 | return em |
---|
Note: See
TracBrowser for help on using the repository browser.