def show_inventory(id, id2): try: valid = inventory_viewer.is_valid_db_collection(id, id2) if not valid: raise BadNameError('') except BadNameError: return render_template( 'edit_bad_name.html', db_name=id, coll_name=id2, bread=[ ['⌂', url_for('index')], [url_pref.strip('/'), url_for('inventory_app.show_edit_root')], [id, url_for('inventory_app.show_edit_child', id=id)], [id2, url_for('inventory_app.show_inventory', id=id, id2=id2)] ]) bread = [['⌂', url_for('index')], [url_pref.strip('/'), url_for('inventory_app.show_edit_root')], [id, url_for('inventory_app.show_edit_child', id=id)], [id2, url_for('inventory_app.show_inventory', id=id, id2=id2)]] return render_template('view_inventory.html', db_name=id, collection_name=id2, bread=bread, table_fields=linv.display_field_order(), info_fields=linv.info_field_order())
def show_inventory(id, id2): bread = [['⌂', url_for('index')], [url_pref.strip('/'), url_for('inventory_app.show_edit_root')], [id, url_for('inventory_app.show_edit_child', id=id)], [id2, url_for('inventory_app.show_inventory', id=id, id2=id2)]] return render_template('view_inventory.html', db_name=id, collection_name=id2, bread=bread, table_fields=linv.display_field_order(), info_fields=linv.info_field_order())
def show_inventory(id, id2): try: valid = inventory_viewer.is_valid_db_table(id, id2) if not valid: raise BadNameError('') except BadNameError: return render_template('edit_bad_name.html', db_name=id, table_name=id2, bread=[['⌂', url_for('index')],[url_pref.strip('/'), url_for('inventory_app.show_edit_root')],[id, url_for('inventory_app.show_edit_child', id=id)], [id2, url_for('inventory_app.show_inventory', id=id, id2=id2)]]) bread=[['⌂', url_for('index')],[url_pref.strip('/'), url_for('inventory_app.show_edit_root')], [id, url_for('inventory_app.show_edit_child', id=id)], [id2, url_for('inventory_app.show_inventory', id=id, id2=id2)]] return render_template('view_inventory.html', db_name=id, table_name=id2, bread=bread, table_fields=linv.display_field_order(), info_fields=linv.info_field_order())