def LoadBackendEntry(backend_entry):
 builder = yaml_object.ObjectBuilder(BackendEntry)
 handler = yaml_builder.BuilderHandler(builder)
 listener = yaml_listener.EventListener(handler)
 listener.Parse(backend_entry)
 entries = handler.GetResults()
 if (len(entries) < 1):
  raise BadConfig('Empty backend configuration.')
 if (len(entries) > 1):
  raise BadConfig('Multiple backend entries were found in configuration.')
 return entries[0].Init()

def LoadBackendEntry ( backend_entry ) : builder = yaml_object . ObjectBuilder ( BackendEntry ) handler = yaml_builder . BuilderHandler ( builder ) listener = yaml_listener . EventListener ( handler ) listener . Parse ( backend_entry ) entries = handler . GetResults ( ) if ( len ( entries ) < 1 ) : raise BadConfig ( 'Empty backend configuration.' ) if ( len ( entries ) > 1 ) : raise BadConfig ( 'Multiple backend entries were found in configuration.' ) return entries [ 0 ] . Init ( )
parses a backendentry object from a string .