def get_collection_by_alias(bus, alias):
 service_obj = bus_get_object(bus, SS_PATH)
 service_iface = dbus.Interface(service_obj, SERVICE_IFACE)
 collection_path = service_iface.ReadAlias(alias, signature='s')
 if (len(collection_path) <= 1):
  raise ItemNotFoundException('No collection with such alias.')
 return Collection(bus, collection_path)

def get_collection_by_alias ( bus , alias ) : service_obj = bus_get_object ( bus , SS_PATH ) service_iface = dbus . Interface ( service_obj , SERVICE_IFACE ) collection_path = service_iface . ReadAlias ( alias , signature = 's' ) if ( len ( collection_path ) <= 1 ) : raise ItemNotFoundException ( 'No collection with such alias.' ) return Collection ( bus , collection_path )
returns the collection with the given alias .