~homeworkprod/byceps

ref: 533662eefb314d54b168e5a46bc07c88b5f88be4 byceps/byceps/blueprints/admin/site/views.py -rw-r--r-- 9.4 KiB
533662ee — Jochen Kupperschmidt 4 months ago
Use Flask v2.0's `delete`/`get`/`patch`/`post` route shortcuts
d1dff0da — Jochen Kupperschmidt 7 months ago
Translate flash messages to English
e6f5deba — Jochen Kupperschmidt 7 months ago
Wrap flash message texts in `gettext` calls for translation
1b14010f — Jochen Kupperschmidt 8 months ago
Introduce `byceps.util.authorization.register_permission_enum` to be used in blueprint views
386eb13e — Jochen Kupperschmidt 8 months ago
Move permission registry module out of blueprints package
3d7b49f0 — Jochen Kupperschmidt 8 months ago
Update copyright notes for 2021
38df9baa — Jochen Kupperschmidt 8 months ago
Move `permission_required` decorator to `byceps.util.views`
660e07a5 — Jochen Kupperschmidt 9 months ago
Remove email config ID from site

Email config is obtained via site's brand ID instead.

DDL:

    ALTER TABLE sites DROP COLUMN email_config_id;
0b51dd42 — Jochen Kupperschmidt 10 months ago
Refer to license as "Revised BSD" to clarify that it is not customized

The common name "Modified BSD License" for the 3-clause BSD license can
be misleading as it might suggest it is a BSD license customized by the
project author.

To avoid this, refer to the license under one of its other names
instead.
a3fae338 — Jochen Kupperschmidt 11 months ago
Add brand-limited admin sites index
e5128151 — Jochen Kupperschmidt 11 months ago
Add brand to site in code rather than template
d1842ba6 — Jochen Kupperschmidt 11 months ago
Return sites as set instead of list
5e43c17c — Jochen Kupperschmidt 11 months ago
Simplify site form choice fallback
6393918c — Jochen Kupperschmidt 11 months ago
Extract function to fill form choices
aea547bd — Jochen Kupperschmidt 1 year, 2 days ago
Turn some site creation arguments into optional keyword arguments with defaults
018cd4bf — Jochen Kupperschmidt 1 year, 12 days ago
Rename brand service function `get_brands` to `get_all_brands`

This makes the name consistent with those for other similar service
functions and leaves room for a function that allows for filter
arguments.
97cfc473 — Jochen Kupperschmidt 1 year, 1 month ago
Move authorization blueprint into `common` subpackage
67008944 — Jochen Kupperschmidt 1 year, 3 months ago
Fix site update endpoint
3e3955ce — Jochen Kupperschmidt 1 year, 3 months ago
Limit party, board, news channel choices to brand in site creation/update dropdowns

This can become an issue if one decodes to update a site to a new brand
as the items for other brands are not instantly available.

As a workaround, one could change the brand, then update party, board,
and news channel in a second use of the update form.
845d6458 — Jochen Kupperschmidt 1 year, 3 months ago
Add brand ID to site, require on site creation

DDL:

    ALTER TABLE sites ADD COLUMN brand_id text;
    CREATE INDEX ix_sites_brand_id ON sites (brand_id);
    ALTER TABLE sites ADD CONSTRAINT sites_brand_id_fkey FOREIGN KEY (brand_id) REFERENCES brands (id);
    ALTER TABLE sites ALTER COLUMN brand_id SET NOT NULL;
Next