Example #1
0
 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)
Example #2
0
    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 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 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 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}
Example #6
0
    def get(self, request):
        changed = request.QUERY_PARAMS.get('changed', False)

        return Response({'plugins': list(plugins.all()),
                         'changed': changed},
                        template_name='plugins_list.html')