Last change
on this file since 1608 was
1164,
checked in by Henrik Bettermann, 18 years ago
|
getStudentInfo replaced or removed
|
-
Property svn:keywords set to
Id
|
File size:
525 bytes
|
Rev | Line | |
---|
[845] | 1 | ## Script (Python) "getMaintenancePrefix" |
---|
[744] | 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters= |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
[801] | 10 | # $Id:getMaintenancePrefix.py 486 2006-09-06 10:09:39Z joachim $ |
---|
[744] | 11 | """ |
---|
| 12 | return the Prefix for hostel maintenance scratchcards |
---|
| 13 | """ |
---|
[1164] | 14 | s_info = context.getAccommodationInfo() |
---|
[828] | 15 | if s_info.has_key('acco_doc'): |
---|
| 16 | info = context.waeup_tool.getAccommodationInfo(s_info['acco_doc'].bed) |
---|
| 17 | if info: |
---|
| 18 | return info['maintenance_code'] |
---|
| 19 | return "" |
---|
Note: See
TracBrowser for help on using the repository browser.