def get_item_attributes(item_id): """Returns item attributes for item with given id.""" bus = dbus_init() collection = get_any_collection(bus) item = Item(bus, join(collection.collection_path, str(item_id))) return item.get_attributes()
def get_item_attributes(item_id): """Returns item attributes for item with given id.""" bus = dbus_init() item = Item(bus, item_id) return item.get_attributes()