trying out web view for internet radio station management

workspace
Brendan Howell 4 years ago
parent e6c109dd36
commit 2760e18f8e

@ -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):

Loading…
Cancel
Save