Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar 66431a3df0 test: fix tests for AppHandler.get_version()
for some reason python-configuration is unreliable on certain python
versions?  not sure what that's about, but this seems to work..
2024-08-05 23:13:53 -05:00
Lance Edgar 6f72726e3a bump: version 0.17.6 → 0.17.7 2024-08-05 22:56:02 -05:00
Lance Edgar 00311dd151 fix: AppHandler.get_version() should use upstream logic
but for now it needs a backward-compatibility wrapper
2024-08-05 22:21:17 -05:00
Lance Edgar 983c4b6cf7 bump: version 0.17.5 → 0.17.6 2024-08-05 15:33:45 -05:00
Lance Edgar 0b046b32a4 fix: method for AuthHandler.user_is_admin() moved upstream 2024-08-05 14:29:05 -05:00
Lance Edgar 74f583113b fix: invoke wuttjamaican logic for rattail.util.prettify()
eventually should deprecate that altogether since callers can now just
use app handler method
2024-08-04 14:37:51 -05:00
Lance Edgar 82f13146e7 bump: version 0.17.4 → 0.17.5 2024-07-18 11:12:37 -05:00
Lance Edgar 2bec069d40 fix: require latest wuttjamaican 2024-07-18 11:12:31 -05:00
Lance Edgar 2322d50152 bump: version 0.17.3 → 0.17.4 2024-07-17 18:23:13 -05:00
Lance Edgar 8f4ad3ab11 fix: rename auth handler; avoid app in provider constructor
if we reference `self.app` within the Provider constructor, then it
can (in some cases?) cause a recursion loop error
2024-07-17 17:54:40 -05:00
Lance Edgar ef5f72b0ff bump: version 0.17.2 → 0.17.3 2024-07-16 21:35:28 -05:00
Lance Edgar 237c2d3556 fix: fix bugs in OrgHandler.get_subdepartment() 2024-07-16 21:13:02 -05:00
Lance Edgar 08bb030a52 fix: avoid deprecated calls to administrator_role() 2024-07-16 17:45:38 -05:00
Lance Edgar f68aab4d8f bump: version 0.17.1 → 0.17.2 2024-07-16 17:21:35 -05:00
Lance Edgar 94b6dc91c5 fix: avoid deprecated self.model for people handler
per wuttjamaican
2024-07-15 22:19:56 -05:00
Lance Edgar abc60b4f17 bump: version 0.17.0 → 0.17.1 2024-07-15 21:50:27 -05:00
Lance Edgar 2b90110871 fix: avoid deprecated self.model within the auth handler
per wuttjamaican
2024-07-15 21:49:58 -05:00
Lance Edgar 2df717fa29 bump: version 0.16.1 → 0.17.0 2024-07-14 23:24:37 -05:00
Lance Edgar 1a3693fd10 feat: move most of auth handler logic to wuttjamaican
also deprecate the `rattail.db.auth` module
2024-07-14 23:23:25 -05:00
Lance Edgar 94624f7df6 fix: rename some constraints per wutta model
we will not (yet?) be able to "inherit" from the wutta model Base
which means basically the two are "not related" at this point.

but we do want to *match* whatever wutta has defined so far.  the
rattail auth tables may contain more columns but will at least include
those columns present for the wutta model.

part of matching is the constraint names, which have been manually
specified in rattail for a while now.  finally wutta has bothered to
define a proper naming convention so we can simply omit the names for
future changes.  however it also means we must add an explicit
migration for any models we must match to wutta, to abandon the names
we had previously set which are now "incorrect"

most constraint names can remain as-is i think, since most tables will
never exist in the wutta model.  eventually might be good to rename
all at once but that can wait
2024-07-14 16:20:59 -05:00
Lance Edgar ef674dc188 bump: version 0.16.0 → 0.16.1 2024-07-12 00:14:52 -05:00
Lance Edgar 2f17b96e54 fix: remove duplicate method for AppHandler.load_object()
that is now defined in wuttjamaican
2024-07-12 00:14:31 -05:00
Lance Edgar be16b9bedb fix: remove duplicate method for RattailConfig.production()
since it now is defined in `WuttaConfig`
2024-07-11 18:22:56 -05:00
Lance Edgar ee6faf3d42 bump: version 0.15.0 → 0.16.0 2024-07-11 13:11:47 -05:00
Lance Edgar 446a63b6eb feat: move some app model logic to wuttjamaican
previously the "canonical" way to get the model was via
config.get_model() - but now the canonical way is simply app.model

note that for now, even though wuttjamaican provides a default model,
the rattail model does not (yet?) inherit from it.  also since
wuttjamaican does not yet support versioning, that feature remains in
rattail only for now.

various legacy things have been deprecated and will warn if used by
other apps.
2024-07-11 13:06:54 -05:00
Lance Edgar d501c07127 bump: version 0.14.8 → 0.15.0 2024-07-09 16:38:26 -05:00
Lance Edgar 779e2ef708 feat: drop python 3.6 support, use pyproject.toml (again) 2024-07-09 16:38:09 -05:00
Lance Edgar adacf63907 bump: version 0.14.7 → 0.14.8 2024-07-05 09:49:40 -05:00
Lance Edgar 3ab352ac63 fix: fix model reference in reporting handler 2024-07-05 09:49:00 -05:00
Lance Edgar dc1a9d0e9d bump: version 0.14.6 → 0.14.7 2024-07-04 23:57:46 -05:00
Lance Edgar 20d588f15b test: fix broken test
now that we are providing a default value for mail template paths.  i
could not think of any reason we were *not* doing that before...?
2024-07-04 22:10:23 -05:00
Lance Edgar fd3f8035d9 fix: add get_role() method for auth handler
for common lookup logic; this is used when auto-creating users so
config can say which role to assign them to
2024-07-04 21:25:28 -05:00
Lance Edgar 9207087a64 fix: specify default list for rattail mail templates
not sure how this never came up before?
2024-07-04 21:24:15 -05:00
Lance Edgar 4105ff4303 fix: add get_cmd() method for import handlers
now that we have no direct reference to command/subcommand objects,
must deduce them some other way for sake of locating correct email
profile config
2024-07-04 20:31:50 -05:00
Lance Edgar d513e19af0 bump: version 0.14.5 → 0.14.6 2024-07-04 14:45:14 -05:00
Lance Edgar 9cea8075fe fix: bump version for wuttjamaican
0.4.0 drops the legacy command system entirely, since we no longer use it
2024-07-04 14:39:26 -05:00
Lance Edgar 6f08138ba9 fix: avoid command line errors if sqlalchemy not installed
some commands will not work without sqlalchemy of course, but some
still need to (e.g. backup)
2024-07-04 11:39:29 -05:00
Lance Edgar 9fcbdb023c fix: refactor code so most things work without sqlalchemy
also refactor tests to help ensure that remains true
2024-07-04 10:35:04 -05:00
Lance Edgar aff5590931 bump: version 0.14.4 → 0.14.5 2024-07-04 08:18:38 -05:00
Lance Edgar b85bcd325b fix: bump wuttjamaican version requirement
to include changes for config, app handler etc.
2024-07-04 08:03:47 -05:00
Lance Edgar f32c9da676 fix: change how we override default app handler, engine maker
per upstream changes.  this ensures we avoid the app handler when first
creating the engines, so that config extensions may override the
default app handler without being ignored.
2024-07-04 07:27:28 -05:00
Lance Edgar 0140f78923 bump: version 0.14.3 → 0.14.4 2024-07-02 10:06:49 -05:00
Lance Edgar 3727959383 fix: use importlib_resources before python 3.9 2024-07-02 09:58:30 -05:00
Lance Edgar 5190730585 fix: avoid pkg_resources for files.resource_path() 2024-07-02 09:38:45 -05:00
Lance Edgar ca6cd2c7dd bump: version 0.14.2 → 0.14.3 2024-07-02 01:43:40 -05:00
Lance Edgar 1cbc840e17 fix: include importing subcommands for discovery 2024-07-02 01:42:50 -05:00
Lance Edgar b64dd4b0ff bump: version 0.14.1 → 0.14.2 2024-07-02 00:11:53 -05:00
Lance Edgar 1e01ef195b fix: delay imports from wuttjamaican.db
in case sqlalchemy is not installed
2024-07-02 00:10:19 -05:00
Lance Edgar 99071616f5 bump: version 0.14.0 → 0.14.1 2024-07-01 23:18:39 -05:00
Lance Edgar c5c8c06ea7 test: improve some tests, docs for rattail.config module
still some left to do, just a stopping point
2024-07-01 23:07:05 -05:00