## Script (Python) "cpsdocument_edit" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # $Id:getMaintenancePrefix.py 486 2006-09-06 10:09:39Z joachim $ """ return the Prefix for hostel maintenance scratchcards """ s_info = context.getStudentInfo() if s_info.has_key('acco_doc'): info = context.waeup_tool.getAccommodationInfo(s_info['acco_doc'].bed) if info: return info['maintenance_code'] return ""