def get_installed_plugins(): """ Get plugins installed in the database collection 'plugin' :return: list of installed plugins """ plugin_list = [] x = DBConnection.list_collections("plugin") for i in x: plugin_list.append(i) return plugin_list
def get_name(plugin): """ Gets the information and pois from the selected plugin :param plugin: current selected plugin :return: Mongo cursor with the info from the plugin """ project_db = DBConnection.get_collection("plugin") x = DBConnection.list_collections("plugin") for i in x: if plugin == i: project_info = project_db[i] cursor = project_info.find() return cursor