def LoadSingleQueue(queue_info, open_fn=None):
 builder = yaml_object.ObjectBuilder(QueueInfoExternal)
 handler = yaml_builder.BuilderHandler(builder)
 listener = yaml_listener.EventListener(handler)
 listener.Parse(queue_info)
 queue_info = handler.GetResults()
 if (len(queue_info) < 1):
  raise MalformedQueueConfiguration('Empty queue configuration.')
 if (len(queue_info) > 1):
  raise MalformedQueueConfiguration('Multiple queue: sections in configuration.')
 return queue_info[0]

def LoadSingleQueue ( queue_info , open_fn = None ) : builder = yaml_object . ObjectBuilder ( QueueInfoExternal ) handler = yaml_builder . BuilderHandler ( builder ) listener = yaml_listener . EventListener ( handler ) listener . Parse ( queue_info ) queue_info = handler . GetResults ( ) if ( len ( queue_info ) < 1 ) : raise MalformedQueueConfiguration ( 'Empty queue configuration.' ) if ( len ( queue_info ) > 1 ) : raise MalformedQueueConfiguration ( 'Multiple queue: sections in configuration.' ) return queue_info [ 0 ]
load a queue .