##parameters=key=None # $Id: reservedRoomsVoc.py 1393 2007-02-05 21:42:08Z joachim $ """ Return the reservedrooms as an vocabulary """ doc = context.getContent() voc = [("_".join((r.split('/')[0],r.split('/')[1])),r) for r in doc.reserved_rooms.split(',') if r] #from Products.zdb import set_trace;set_trace() if not key: return voc for k,v in voc: if k == key: return v