|
|
@ -31,7 +31,6 @@ class IhrApp(Bottle):
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
print("webviews", self.views)
|
|
|
|
|
|
|
|
for bureau in self.bureaus:
|
|
|
|
for bureau in self.bureaus:
|
|
|
|
out += '<li>{0}:<ul>\n'.format(bureau)
|
|
|
|
out += '<li>{0}:<ul>\n'.format(bureau)
|
|
|
|
out += '<li><a href="/config/{0}">{0} config</a></li>\n'.format(bureau)
|
|
|
|
out += '<li><a href="/config/{0}">{0} config</a></li>\n'.format(bureau)
|
|
|
@ -104,7 +103,7 @@ class IhrApp(Bottle):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.views[prefix] = [view]
|
|
|
|
self.views[prefix] = [view]
|
|
|
|
def wrapped_cb():
|
|
|
|
def wrapped_cb():
|
|
|
|
callback(request.forms)
|
|
|
|
return callback(request.forms)
|
|
|
|
self.route("/" + prefix + "/" + view, callback=wrapped_cb)
|
|
|
|
self.route("/" + prefix + "/" + view, callback=wrapped_cb)
|
|
|
|
|
|
|
|
|
|
|
|
def register_crud(self, data):
|
|
|
|
def register_crud(self, data):
|
|
|
|