Commit graph

31 commits

Author SHA1 Message Date
Lance Edgar 59bd58aca7 feat: add new 'waterpark' theme, based on wuttaweb w/ vue2 + buefy
hoping to eventually replace the 'default' view with this one, if all
goes well.  definitely needs more testing and is not exposed as an
option yet, unless configured
2024-08-20 15:03:25 -05:00
Lance Edgar 290f8fd51e feat: move multi-column grid sorting logic to wuttaweb
tailbone grid template still duplicates much for Vue, and will until
we can port the filters and anything else remaining..
2024-08-18 19:52:21 -05:00
Lance Edgar ec36df4a34 feat: move single-column grid sorting logic to wuttaweb 2024-08-18 14:05:52 -05:00
Lance Edgar 9da2a148c6 feat: move "basic" grid pagination logic to wuttaweb
so far only "simple" pagination is supported by wuttaweb, so basically
the main feature flag, page size, current page.  in this
scenario *all* data is written to client-side JSON and Buefy handles
the actual pagination.

backend pagination coming soon for wuttaweb but for now tailbone still
handles all that.
2024-08-16 18:45:04 -05:00
Lance Edgar 2a0b6da2f9 feat: inherit from wutta base class for Grid 2024-08-16 14:34:50 -05:00
Lance Edgar 1b78bd617c feat: inherit most logic from wuttaweb, for GridAction 2024-08-16 11:56:12 -05:00
Lance Edgar da0f6bd5e1 feat: use wuttaweb for get_liburl() logic
thankfully this is already handled and we can remove from tailbone.
although this adds some new cruft as well, to handle auto-migrating
any existing liburl config for apps.

eventually once all apps have migrated to new settings we can remove
the prefix from our calls here but also in wuttaweb signature
2024-08-15 23:12:02 -05:00
Lance Edgar 7f0c571a44 fix: improve wutta People view a bit
try to behave more like traditional tailbone, for the few things
supported so far.  taking a conservative approach here for now since
probably other things are more pressing.
2024-08-15 21:12:34 -05:00
Lance Edgar dd176a5e9e feat: add first wutta-based master, for PersonView
still opt-in-only at this point, the traditional tailbone-native
master is used by default.

new wutta master is not feature complete yet.  but at least things
seem to render and form posts work okay..

when enabled, this uses a "completely" wutta-based stack for the view,
grid and forms.  but the underlying DB is of course rattail, and the
templates are still traditional/tailbone.
2024-08-15 16:05:53 -05:00
Lance Edgar a6ce5eb21d feat: refactor forms/grids/views/templates per wuttaweb compat
this starts to get things more aligned between wuttaweb and tailbone.
the use case in mind so far is for a wuttaweb view to be included in a
tailbone app.

form and grid classes now have some new methods to match wuttaweb, so
templates call the shared method names where possible.

templates can no longer assume they have tailbone-native master view,
form, grid etc. so must inspect context more closely in some cases.
2024-08-15 15:49:54 -05:00
Lance Edgar 3b92bb3a9e fix: use wuttaweb logic for util.get_form_data() 2024-08-05 09:11:19 -05:00
Lance Edgar d72d6f8c7c fix: require zope.sqlalchemy >= 1.5
so we can do away with some old cruft, since latest zope.sqlalchemy is
3.1 from 2023-09-12
2024-07-02 11:14:03 -05:00
Lance Edgar 49da9776e7 Remove unused test fixtures 2024-04-19 20:25:07 -05:00
Lance Edgar 0d9a502801 Fix test for config object 2023-05-25 14:55:41 -05:00
Lance Edgar a7f4b2e6ef Refactor autocomplete view logic to leverage new "autocompleters"
finally!  this cleans up some view config and AFAIK there is no loss
in functionality etc.
2021-10-01 10:28:06 -04:00
Lance Edgar b2e2b2e85e Fix one broken test; remove another
ugh what are these tests even accomplishing..
2021-09-30 16:17:55 -04:00
Lance Edgar f2b5e2302a Delete some unwanted tests; delay import for tempmon session
view config can now depend on rattail config, and tests don't like that... but
they didn't really do anything that useful anyway i think
2020-04-04 21:44:01 -05:00
Lance Edgar 61fa77b752 Remove some pointless tests
they became broken, but not worth fixing
2018-11-30 16:07:58 -06:00
Lance Edgar fd15865d0b Remove some tests
ugh, this is the wrong direction, but seems practical in this case since the
tests didn't accomplish much
2018-10-17 19:44:22 -05:00
Lance Edgar ec275b2fe0 Remove tests for legacy forms 2018-02-10 02:29:42 -06:00
Lance Edgar b157b79938 Remove last references to 'edbob' package 2016-10-09 21:12:13 -05:00
Lance Edgar 165c105b96 Remove some broken tests. 2015-12-07 19:02:21 -06:00
Lance Edgar 62784390b0 Add hack to fix some tests. 2015-08-13 14:45:05 -05:00
Lance Edgar 4f5c0e6bd8 Tweak app.make_rattail_config() to allow caller to define some settings.
This is mostly for the sake of tests etc.
2015-05-03 19:36:19 -05:00
Lance Edgar 8bf292ebac Remove some more edbob cruft. 2014-11-18 23:00:24 -06:00
Lance Edgar a958a7b285 Add event hook for attaching Rattail config to new requests. 2014-02-21 10:10:10 -08:00
Lance Edgar bc156b46f4 Fix tests for Python 2.6. 2014-02-15 22:39:27 -08:00
Lance Edgar 40efd8a3bc Rebranded to Tailbone. 2013-09-01 08:18:37 -07:00
Lance Edgar 6921f20fed Fixed import issue with views.reports module. 2013-08-23 14:52:07 -07:00
Lance Edgar b7fdd1f797 Replaced Grid.clickable with .viewable.
Clickable grid rows seemed to be more irritating than useful.  Now a view icon
is shown instead.
2013-07-22 21:32:54 -07:00
Lance Edgar 134613aadd Moved tests out of package dir. 2013-07-22 19:22:18 -07:00