From ba521abf4f5d123b5b82f17a730e0d8d886655b6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 14 Apr 2024 20:30:52 -0500 Subject: [PATCH] Remove some references to "buefy" name within docstrings, comments --- tailbone/forms/core.py | 8 ++++---- tailbone/forms/widgets.py | 10 +++++----- tailbone/static/css/grids.rowstatus.css | 2 +- tailbone/templates/customers/view.mako | 4 +--- tailbone/templates/roles/view.mako | 4 +--- tailbone/views/settings.py | 3 +-- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/tailbone/forms/core.py b/tailbone/forms/core.py index 9ef8cb2b..a5ab3355 100644 --- a/tailbone/forms/core.py +++ b/tailbone/forms/core.py @@ -968,10 +968,10 @@ class Form(object): def render_field_complete(self, fieldname, bfield_attrs={}): """ - Render the given field in a Buefy-compatible way. Note that - this is meant to render *editable* fields, i.e. showing a - widget, unless the field input is hidden. In other words it's - not for "readonly" fields. + Render the given field completely, i.e. with ```` + wrapper. Note that this is meant to render *editable* fields, + i.e. showing a widget, unless the field input is hidden. In + other words it's not for "readonly" fields. """ dform = self.make_deform_form() field = dform[fieldname] if fieldname in dform else None diff --git a/tailbone/forms/widgets.py b/tailbone/forms/widgets.py index 63813452..6b74798c 100644 --- a/tailbone/forms/widgets.py +++ b/tailbone/forms/widgets.py @@ -57,11 +57,11 @@ class NumberInputWidget(dfwidget.TextInputWidget): class NumericInputWidget(NumberInputWidget): """ - This widget only supports Buefy themes for now. It uses a - ```` component, which will leverage the ``numeric.js`` - functions to ensure user doesn't enter any non-numeric values. Note that - this still uses a normal "text" input on the HTML side, as opposed to a - "number" input, since the latter is a bit ugly IMHO. + This widget uses a ```` component, which will + leverage the ``numeric.js`` functions to ensure user doesn't enter + any non-numeric values. Note that this still uses a normal "text" + input on the HTML side, as opposed to a "number" input, since the + latter is a bit ugly IMHO. """ template = 'numericinput' allow_enter = True diff --git a/tailbone/static/css/grids.rowstatus.css b/tailbone/static/css/grids.rowstatus.css index 9335b827..bfd73404 100644 --- a/tailbone/static/css/grids.rowstatus.css +++ b/tailbone/static/css/grids.rowstatus.css @@ -2,7 +2,7 @@ /******************************************************************************** * grids.rowstatus.css * - * Add "row status" styles for Buefy grid tables. + * Add "row status" styles for grid tables. ********************************************************************************/ /************************************************** diff --git a/tailbone/templates/customers/view.mako b/tailbone/templates/customers/view.mako index 2fa7c417..8b07bdb3 100644 --- a/tailbone/templates/customers/view.mako +++ b/tailbone/templates/customers/view.mako @@ -28,9 +28,7 @@ % endif ThisPage.methods.detachPerson = function(url) { - ## TODO: this should require POST, but we will add that once - ## we can assume a Buefy theme is present, to avoid having to - ## implement the logic in old jquery... + ## TODO: this should require POST! but for now we just redirect.. if (confirm("Are you sure you want to detach this person from this customer account?")) { location.href = url } diff --git a/tailbone/templates/roles/view.mako b/tailbone/templates/roles/view.mako index 5dcd9408..0f4ce472 100644 --- a/tailbone/templates/roles/view.mako +++ b/tailbone/templates/roles/view.mako @@ -15,9 +15,7 @@ % endif ThisPage.methods.detachPerson = function(url) { - ## TODO: this should require POST, but we will add that once - ## we can assume a Buefy theme is present, to avoid having to - ## implement the logic in old jquery... + ## TODO: this should require POST! but for now we just redirect.. if (confirm("Are you sure you want to detach this person from this customer account?")) { location.href = url } diff --git a/tailbone/views/settings.py b/tailbone/views/settings.py index 46e4c02b..679f170c 100644 --- a/tailbone/views/settings.py +++ b/tailbone/views/settings.py @@ -341,8 +341,7 @@ class AppSettingsView(View): # specify error / message if applicable # TODO: not entirely clear to me why some field errors are - # represented differently? presumably it depends on - # whether Buefy is used by the theme. + # represented differently? if field.error: s['error'] = True if isinstance(field.error, colander.Invalid):