Last change
on this file since 1489 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
|
Rev | Line | |
---|
[1458] | 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 | |
---|
| 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.