Last change
on this file since 17936 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 | |
---|
12 | digits = 8 |
---|
13 | letters = 2 |
---|
14 | new_em = 'UME' |
---|
15 | if 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' |
---|
22 | return new_em |
---|
Note: See
TracBrowser for help on using the repository browser.