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