예제 #1
0
def plugins_list():
    message = None
    plugins = Plugin.all()
    if not len(plugins):
        message = 'There are no plugins.'
    log("Plugins listed")
    return render_template('list.html',
                           title='Plugin list',
                           plugins=plugins,
                           message=message)
예제 #2
0
def plugins_list():
    message = None
    plugins = Plugin.all()
    if not len(plugins):
        message = 'There are no plugins.'
    log("Plugins listed")
    return render_template('list.html',
                           title='Plugin list',
                           plugins=plugins,
                           message=message)
예제 #3
0
def plugins_xml():
    """Create the XML file"""
    version = None
    try:
        version = request.args.get('qgis')
    except KeyError:
        pass
    plugins = Plugin.all(version=version)
    response = make_response(render_template('plugins.xml', plugins=plugins))
    response.headers['Content-Type'] = 'application/xml'
    response.headers['Content-Disposition'] = 'inline; plugins.xml'
    return response
예제 #4
0
def plugins_xml():
    """Create the XML file"""
    version = None
    try:
        version = request.args.get('qgis')
    except KeyError:
        pass
    plugins = Plugin.all(version=version)
    response = make_response(render_template('plugins.xml', plugins=plugins))
    response.headers['Content-Type'] = 'application/xml'
    response.headers['Content-Disposition'] = 'inline; plugins.xml'
    return response
예제 #5
0
 def get(self):
     return {'plugins': {p.key: p.metadata for p in Plugin.all()}}
예제 #6
0
 def get(self):
     return {'plugins': {p.key: p.metadata for p in Plugin.all()}}