Code cleanup
This commit is contained in:
parent
bc1c791c9a
commit
8f9d84aeac
|
|
@ -39,9 +39,7 @@ def loadPlugins():
|
||||||
plugin[name] = imp.load_source(name, plugin_dir + i)
|
plugin[name] = imp.load_source(name, plugin_dir + i)
|
||||||
plugin[name].init()
|
plugin[name].init()
|
||||||
except ImportError as msg:
|
except ImportError as msg:
|
||||||
print "Error occured during loading imports for the plugin " + name + ". Please check whether all dependecies are installed"
|
sys.exit("Error occured during loading imports for the plugin {}: {}".format(name, msg))
|
||||||
print msg
|
|
||||||
sys.exit()
|
|
||||||
return plugin
|
return plugin
|
||||||
|
|
||||||
@login_required()
|
@login_required()
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ def generatePage():
|
||||||
if not match:
|
if not match:
|
||||||
blockValues[component] = retrieveValue(requestedRoute, component)
|
blockValues[component] = retrieveValue(requestedRoute, component)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
blockValues[match.group(1)] = retrieveValue(requestedRoute, component)
|
blockValues[match.group(1)] = retrieveValue(requestedRoute, component)
|
||||||
blockArray.append(blockValues)
|
blockArray.append(blockValues)
|
||||||
blockValues = {}
|
blockValues = {}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div style=";overflow: hidden">
|
<div style=";overflow: hidden">
|
||||||
<br>
|
<br>
|
||||||
<script> console.log("{{ blockArray[count] }}");</script>
|
|
||||||
{% for k, v in blockArray[count]["camera"].iteritems() %}
|
{% for k, v in blockArray[count]["camera"].iteritems() %}
|
||||||
{% if v[1] %}
|
{% if v[1] %}
|
||||||
<script> $('#s_title_{{ count }}').html("{{ v[1] }}");</script>
|
<script> $('#s_title_{{ count }}').html("{{ v[1] }}");</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue