source: WAeUP_SRP/trunk/skins/waeup_student/getMaintenancePrefix.py @ 3734

Last change on this file since 3734 was 2000, checked in by Henrik Bettermann, 17 years ago

ticket #245

  • Property svn:keywords set to Id
File size: 516 bytes
Line 
1## Script (Python) "getMaintenancePrefix"
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##
10# $Id:getMaintenancePrefix.py 486 2006-09-06 10:09:39Z joachim $
11"""
12return the Prefix for hostel maintenance scratchcards
13"""
14s_info = context.getAccommodationInfo()
15if s_info.has_key('acco_doc'):
16    info = context.waeup_tool.getHallInfo(s_info['acco_doc'].bed)
17    if info:
18        return info['maintenance_code']
19return ""
Note: See TracBrowser for help on using the repository browser.