def get_tables(self): buf = StringIO() i = Importer(buf=buf) from steelscript.appfwk.apps.datasource.modules import analysis, html for p in plugins.all(): for d in p.get_datasources(): i.import_file(*d) return self.get_subclasses(DatasourceTable)
def get(self, request): changed = request.QUERY_PARAMS.get('changed', False) return Response({ 'plugins': list(plugins.all()), 'changed': changed }, template_name='plugins_list.html')
def static_extensions(request): js = [] css = [] for plugin in plugins.all(): if hasattr(plugin, 'js'): js.extend(plugin.js) if hasattr(plugin, 'css'): css.extend(plugin.css) return {'js_extensions': js, 'css_extensions': css}
def get(self, request): changed = request.QUERY_PARAMS.get('changed', False) return Response({'plugins': list(plugins.all()), 'changed': changed}, template_name='plugins_list.html')