Commit graph

45 commits

Author SHA1 Message Date
Lance Edgar
ca57bd3572 Auto-register all config pages, for dropdown in App Settings 2021-12-15 00:00:46 -06:00
Lance Edgar
cc833c52b6 Add common "form poster" logic, to make CSRF token/header names configurable
also refactor the Feedback logic to use it
2020-12-16 14:28:41 -06:00
Lance Edgar
e943a1cd44 Convert mako directories to list, if it's a string
so we can push a new path to it, for sake of theme
2020-06-24 11:36:58 -05:00
Lance Edgar
e756ae3c8f Add "multi-engine" support for Trainwreck transaction views 2019-07-25 15:40:38 -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
6022ef9be3 Don't assume app has configured a tempmon DB engine
whoops
2018-11-29 14:52:44 -06:00
Lance Edgar
36f786f0eb Clean up how we configure DB sessions on app startup
not real sure if the old logic was a "problem" per se, but this cleanup seems
warranted and (fingers crossed) shouldn't break anything
2018-11-28 15:37:57 -06:00
Lance Edgar
ea0dc1ea19 Add template "theme" feature, albeit global
would be even better to let each user session have something different, but
alas this is all-or-nothing for now
2018-11-27 17:52:02 -06:00
Lance Edgar
92c1b165fb Try to configure the 'pyramid_retry' package, if available
this is used (as of pyramid 1.9) for gracefully handling postgres restarts
2018-10-25 14:33:28 -05:00
Lance Edgar
cefadc7c27 Don't configure versioning when making the app
that is now happening as part of the `make_config()` call
2018-07-31 14:08:38 -05:00
Lance Edgar
9149902c78 Remove deprecated "edbob" settings 2018-07-07 20:43:17 -05:00
Lance Edgar
33e345f4ae Officially remove FormAlchemy dependency (yay!) 2018-02-11 23:25:54 -06:00
Lance Edgar
66769ab34b Stop configuring FormAlchemy engine etc. on app startup 2018-02-11 22:41:20 -06:00
Lance Edgar
827cc592b4 Make CSRF protection optional (but on by default) 2017-10-11 15:57:34 -07:00
Lance Edgar
63e336d4bb Override deform template for checkbox field; fix label behavior 2017-08-17 17:21:07 -05:00
Lance Edgar
b309df005c Tweak how pyramid config is created during app startup, for tests
still not sure if this is quite right, but seems to work for now
2017-08-15 16:13:35 -05:00
Lance Edgar
7d0bb80a90 Merge 'better' theme into base templates
i.e. for now there is no 'better' (or any other) theme
2017-08-13 19:11:53 -05:00
Lance Edgar
581ced2990 Switch license to GPL v3 (no longer Affero)
refs #2
2017-07-06 23:47:56 -05:00
Lance Edgar
7340ef1f9b Rearrange some imports to ensure rattail.db.model comes last
this is necessary for Continuum versioning
2017-07-03 23:52:48 -05:00
Lance Edgar
f02d6d4b16 Add basic support for Trainwreck database connectivity 2017-05-12 23:14:30 -05:00
Lance Edgar
1adcb98f11 Various template standardization tweaks 2017-03-29 00:21:10 -05:00
Lance Edgar
b2e21b8e74 Add basic support for per-user session timeout 2017-02-02 21:44:13 -06:00
Lance Edgar
4ed522ae47 Add global CSRF protection 2016-12-14 18:37:17 -06:00
Lance Edgar
8674cf1650 Refactor tempmon views to leverage rattail-tempmon database 2016-12-05 19:14:20 -06:00
Lance Edgar
6bf60365ba Let any 'admin' user elevate to 'root' for full system access
But otherwise, let the Administrator role be "normal" and have perms of
its own.  Hopefully cuts down on unwanted screen noise for admins.
2016-10-18 16:59:38 -05:00
Lance Edgar
b157b79938 Remove last references to 'edbob' package 2016-10-09 21:12:13 -05:00
Lance Edgar
9b50067bd7 Issue proper warning if old 'edbob.config' setting is found 2016-10-09 19:44:45 -05:00
Lance Edgar
b5cea62de7 Tweak how tailbone finds rattail config from pyramid settings
Eventually need to stop supporting the old 'edbob.config' setting, for
now keep it as a fallback.
2016-10-08 14:29:23 -05:00
Lance Edgar
0f3f39d5c6 Add new TimeFieldRenderer, make it default for Time fields
Uses a jQuery UI widget similar to datepicker:

https://fgelinas.com/code/timepicker/
2016-03-24 00:06:04 -05:00
Lance Edgar
a341acb4f0 Make our DateTimeFieldRenderer the default for datetime fields. 2016-02-14 16:34:39 -06:00
Lance Edgar
6c8425b06d Make rattail config object use our scoped session, when consulting db.
Whoops, apparently we were previously creating a new session for each
config check?  Hopefully this helps...
2016-02-08 19:45:06 -06:00
Lance Edgar
89b443c442 Tweak some things to get Tailbonen working on its own. 2015-11-15 21:06:21 -06:00
Lance Edgar
8ec6a18cdc Fix bug when 'edbob.permissions' setting is empty.
Which, it ought to be forever, soon...
2015-11-15 20:51:09 -06:00
Lance Edgar
8928d03cef Work around formalchemy config bug, caused by edbob. 2015-11-04 22:30:30 -06:00
Lance Edgar
8a6958775d Configure logging when starting up.
Whoops, missed that.
2015-08-20 21:17:01 -05:00
Lance Edgar
3d44e3e857 Add CustomFieldRenderer and DateFieldRenderer. 2015-08-18 23:47:42 -05:00
Lance Edgar
f5b22b1256 Refactor app configuration to use rattail.config.make_config().
Yay, one step closer to removing edbob completely.
2015-08-16 19:55:00 -05:00
Lance Edgar
af07f477dc Convert User pages to use master view.
And of course make some more tweaks to new grids etc.
2015-08-11 23:24:02 -05:00
Lance Edgar
9cfbc918e7 Overhaul how available permissions are registered in app config.
Permissions must now be regsistered just like routes and views.  This
should make things much nicer going forward.
2015-08-11 17:26:04 -05:00
Lance Edgar
21486a5e55 Add StoreFieldRenderer.
Also try to set a good pattern for going forward..
2015-07-15 23:18:53 -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
ae5ff89c7f Refactor app module to promote code sharing.
Hopefully this is a good approach, we'll see.
2015-02-13 21:22:01 -06:00
Lance Edgar
c4a19f279b Remove some edbob, unicode tweak, etc.
In particular it was noticed that edbob has been configuring FormAlchemy
all this time, whoops.  That's still partially the case but now at least
it's explicit.
2015-01-19 00:49:07 -06:00
Lance Edgar
7d19700c3c More standalone operation stuff.
Stop using `edbob.db.engine`, stop using all edbob templates, etc.
2013-09-01 20:25:34 -07:00
Lance Edgar
2a50e704ef Major overhaul for standalone operation.
This removes some of the `edbob` reliance, as well as borrowing some templates
and styling etc. from Dtail.
2013-09-01 15:31:50 -07:00