OneGov official notices website.
Project description
Ongeov Gazette uses the model from Onegov Notice.
Configuration Options
Every Onegov Gazette instance contains a principal.yml with the following configuration options:
- name
The name of the principal.
- color
The primary color.
- logo
The filename of the logo.
- logo_for_pdf
The filename of the logo used in the PDF.
- canton
The shortcode of the canton, used for the SOGC import.
- time_zone
The timezone used for dates.
- help_link
A link to a help page, displayed in the foooter.
- publishing
Enables the publish state.
- frontend
Enables the frontend.
- on_accept
Allows to send an email in case a notice has been accepted.
- sogc_import
Configures the SOGC import.
Example:
name: Govikon color: '#ccaa2e' logo: 'govikon.svg' logo_for_pdf: 'govikon-bw.svg' canton: 'zg' help_link: 'https://help.me/please' timezone: 'Europe/Zurich' publishing: False frontend: False on_accept: mail_to: 'publisher@govikon.ch' mail_from: 'gazette@govikon.ch' sogc_import: endpoint: 'https://amtsblattportal.ch/api/v1' organization: '190' category: '126'
Data Import
There are CLI commands for importing XLSX files containing editors, organizations, categories and issues:
onegov-gazette import-editors ... onegov-gazette import-organizations ... onegov-gazette import-categories ... onegov-gazette import-issues ...
There is a CLI command for importing from the SOGC:
onegov-gazette import-sogc ...
Run the Tests
Install tox and run it:
pip install tox tox
Limit the tests to a specific python version:
tox -e py27
Install jest and run it:
npm install npm t
Conventions
Onegov Gazette follows PEP8 as close as possible. To test for it run:
tox -e pep8
Onegov Gazette uses Semantic Versioning
Build Status
Coverage
Latests PyPI Release
License
onegov.gazette is released under GPLv2
Changelog
1.25.0 (2019-07-31)
Adds a link section to the issue PDF. [href]
1.24.1 (2019-05-16)
Fixes print only option not being saved when editing unrestricted. [msom]
1.24.0 (2019-05-15)
Searches also in notes of notices. [msom]
1.23.1 (2019-04-30)
Removes legacy sentry parameter. [msom]
Enables sentry in CLI commands. [msom]
Replaces Raven JS with Sentry. [msom]
1.23.0 (2019-04-01)
Adds a note to notices for publishers for when editing unrestricted. [msom]
1.22.6 (2019-03-25)
Fixes unrestricted edit notice form trying to edit deleted users. [msom]
Fixes unrestricted edit notice form not saving some values. [msom]
1.22.5 (2019-03-25)
Requires real input in notice form fields. [msom]
1.22.4 (2019-03-14)
Uses yamls safe load function. [msom]
1.22.3 (2019-02-04)
Adjusts PDFs introductory paragraphs. [msom]
1.22.2 (2019-01-31)
Uses latest onegov.form. [msom]
1.22.1 (2019-01-07)
Fixes tests. [msom]
1.22.0 (2018-12-21)
Enables unrestricted editing for publishers. [msom]
1.21.0 (2018-12-04)
Allows to search notices by deleted users and groups. [msom]
1.20.0 (2018-11-28)
Allows to use a SVG header logo in the issue PDF. [msom]
1.19.0 (2018-11-26)
Uses a separate issue PDF for the print only notices. [msom]
Fixes the additional filters legend styling on Firefox. [msom]
1.18.0 (2018-11-25)
Allows to filter by categories and organizations. [msom]
Allows to filter notices which has been processed by the logged-in user. [msom]
Adds a dropdown to filter for a specific issue. [msom]
Adds a shortcut to filter for the current issue. [msom]
Shows more notices per page. [msom]
Fixes notice form trying to set phone numbers of non-existing users. [msom]
Fixes export of organizations not being in order. [msom]
1.17.4 (2018-11-08)
Allows to publish imported SOGC notices on the same date. [msom]
1.17.3 (2018-10-30)
Uses the latest onegov.form. [msom]
Uses a widget to translate the multi checkbox fields. [msom]
1.17.2 (2018-10-02)
Fixes tests failing with latest click release. [href]
1.17.1 (2018-09-24)
Allows publishers to delete accepted notices. [msom]
1.17.0 (2018-09-19)
Adds phone numbers to users. [msom]
Allows publishers to manage groups and editors. [msom]
Shows the email address of the owner in the details view of a notice. [msom]
Fixes test. [msom]
1.16.4 (2018-08-16)
Uses a custom CSRF expired error message. [msom]
1.16.3 (2018-08-13)
Adds IE 11 compatibility. [msom]
1.16.2 (2018-07-19)
Fixes tab menu dropdown styling. [msom]
1.16.1 (2018-07-06)
Fixes inactive categories and organizations not striked-through. [msom]
Requires the user to provide a billing address if liable to pay costs. [msom]
1.16.0 (2018-07-03)
Adds PDF previews of notices. [msom]
Adds PDF index. [msom]
1.15.4 (2018-06-28)
Don’t send accept mails for imported notices. [msom]
1.15.3 (2018-06-28)
Fixes SOGC configuration testing. [msom]
1.15.2 (2018-06-28)
Removes unnecessary SOGC login. [msom]
1.15.1 (2018-06-28)
Fixes throwing an error on unexpected principal configuration options. [msom]
1.15.0 (2018-06-26)
Adds SOGC import. [msom]
Reorganizes the backend menu. [msom]
Adds import/export for issues, categories and organizations. [msom]
Improves the archive view. [msom]
Removes fastclick. [msom]
Fixes quill editor does not focus on click. [msom]
Add compatibility with wtforms 2.2. [msom]
Adds an option for disabling publishing. [msom]
Resizes chosen responsively. [msom]
1.13.17 (2018-05-15)
Adds compatibility with latest onegov.core release. [href]
1.13.16 (2018-05-14)
Adds the number of rejections by user to the statistics. [msom]
1.13.15 (2018-04-26)
Updates translation. [msom]
Hides print only option for editors. [msom]
1.13.14 (2018-03-23)
Adjusts texts/translations. [msom]
Adjusts the publish mail. [msom]
1.13.13 (2018-03-21)
Let the rich text editor grow when needed. [msom]
Remember notice filter settings when changing states. [msom]
1.13.12 (2018-03-20)
Makes the rich text editor bigger. [msom]
Fixes collection filters not used in pagination. [msom]
1.13.11 (2018-03-20)
Fixes PDF attachments not displayed in browser. [msom]
1.13.10 (2018-03-20)
Adds some help texts to the notice form. [msom]
1.13.9 (2018-03-12)
Allows to search by notice id. [msom]
Limits the title of a notice to 60 characters. [msom]
1.13.8 (2018-03-06)
Splits e-mails into transactional/marketing. [href]
1.13.7 (2018-02-14)
Makes the author name a multi line text field. [msom]
Adds some help texts to the notice form. [msom]
Changes layout of print only and at cost options. [msom]
1.13.6 (2018-02-07)
Adds author fields (name, date, place) to notices. [msom]
Fixes label of rich text editor fields not visible. [msom]
1.13.5 (2018-02-06)
Shows print only options only to publishers. [msom]
Print only is always disabled when copying notices. [msom]
Updates translations. [msom]
1.13.4 (2018-01-19)
Assigns publication numbers when publishing the issue. [msom]
1.13.3 (2018-01-18)
Fixes print only option not set when creating a new notice. [msom]
1.13.2 (2018-01-18)
Fixes handling of whitespace in the PDF. [msom]
Adds a print only option to notices. [msom]
1.13.1 (2018-01-11)
Includes attachments in PDFs. [msom]
Fixes handling of whitespace in the PDF. [msom]
Improves the readability of the PDF layout. [msom]
Requires Python 3.6. [href]
1.13.0 (2017-12-12)
Allows to publish notices and to generate weekly PDFs. [msom]
1.12.1 (2017-12-11)
Fixes mails with attachments. [msom]
Adds changelog entries when editing attachments. [msom]
1.12.0 (2017-12-11)
Adds attachments to notices. [msom]
1.11.1 (2017-12-08)
Cleanup code. [msom]
1.11.0 (2017-12-05)
Adds billing address to notices. [msom]
1.10.5 (2017-11-27)
Updates translation. [msom]
Uses a bigger reject comment field. [msom]
Adds missing title slot. [msom]
1.10.4 (2017-11-16)
Allows publishers to manage organizations and categories. [msom]
1.10.3 (2017-11-16)
Fixes failing test. [msom]
1.10.2 (2017-11-10)
Order parents in organization form by their order. [msom]
Fixes setting the initial external ID of an organization. [msom]
Fixes sorting of sub-organizations. [msom]
1.10.1 (2017-11-10)
Uses a chosen select for parent organizations. [msom]
Fixes setting the initial ID of a category or organization. [msom]
Checks the category and organization before submitting and accepting notices. [msom]
Displays a warning when editing a notice with an invalid category or organization. [msom]
Uses an external organization name for accepted mails instead of the name. [msom]
1.10.0 (2017-11-09)
Allows to manage categories, organizations and issues. [msom]
Adds an unrestricted edit view for admins.
1.9.4 (2017-11-15)
Skips failing test. [href]
1.9.3 (2017-11-09)
Fixes initialization of fields. [msom]
Uses latest onegov.quill release. [msom]
Adds a notice modified message. [msom]
Changes the order of the items in the admin menu. [msom]
Always shows the first and last pagination element. [msom]
1.9.2 (2017-10-26)
Uses the HSTORES for category and organization ID from the latest onegov.notice. [msom]
1.9.1 (2017-10-26)
Fixes redirects for various views. [msom]
Fixes typo. [msom]
1.9.0 (2017-10-24)
Adds an XLSX export of all publishers and editors. [msom]
Adds a configurable help link. [msom]
Updates the subject of the publish mail. [msom]
Updates RavenJs to 3.19.1. [msom]
1.8.0 (2017-10-18)
Adds a script to import members. [msom]
1.7.0 (2017-10-13)
Allows to sort notices by group and user names. [msom]
Allows to filter notices by categories, organizations, group names and user names. [msom]
1.6.0 (2017-10-05)
Adds session managment for users. [msom]
Orders the list of users by email. [msom]
Updates RavenJs to 3.18.1. [msom]
Fixes rejecting a notice of a deleted user throwing an error. [msom]
1.5.0 (2017-09-29)
Allows publishers to edit, submit and delete any notice. [msom]
Allows publishers to manage issues past the deadline [msom]
Checks the deadlines/issue dates before submitting and accepting notices. [msom]
Shows a warning in the edit notice view in case of past or overdue issues. [msom]
Uses warnings instead of callouts in forms. [msom]
Fixes dashboard warnings. [msom]
Assume issue dates and times to be UTC. [msom]
1.4.1 (2017-09-22)
Suppresses the IE/Edge popup when closing the preview. [msom]
1.4.0 (2017-09-21)
Exports statistics as XLSX instead of CSV. [msom]
1.3.5 (2017-09-21)
Updates chosen to 1.8.2. [msom]
Configures chosen to search within words, too. [msom]
1.3.4 (2017-09-20)
Patches the chosen library to fix searching for non-ascii characters. [msom]
1.3.3 (2017-09-15)
Fixes reset password link not working when creating users with groups. [msom]
1.3.2 (2017-09-14)
Improves print styles. [msom]
1.3.1 (2017-09-11)
Improves styles for IE. [msom]
Adds a link to the rejected notice in the rejected email. [msom]
Redirects to the manage notices view when working with notices. [msom]
Redirects to the login screen after setting the password. [msom]
Sends directly the password reset link when creating a user. [msom]
1.3.0 (2017-09-05)
Adds a user name validator. [msom]
Updates translation. [msom]
Requires to select an organization when adding a notice. [msom]
Doesn’t use italic in the editor. [msom]
1.2.1 (2017-09-04)
Uses latest onegov.quill release. [msom]
1.2.0 (2017-09-01)
Uses quill editor instead of redactor. [msom]
1.1.0 (2017-08-31)
Fixes chosen sprites. [msom]
Adds a close button to the preview. [msom]
Allows publishers to add notices. [msom]
1.0.0 (2017-08-31)
Fixes clear search/dates view. [msom]
Shows the preview in a separate window. [msom]
Fixes test failing due to changes in the memory backend. [msom]
Adjusts email texts. [msom]
Adjusts dashboard warnings. [msom]
Orders issues by issue year/number. [msom]
Allows to set a reply to address when publishing. [msom]
Reorders meta data column in notice detail view. [msom]
Allows ordered and unordered lists in the editor. [msom]
Allows to fold issues after unfolding again. [msom]
Removes the principal name below the logo. [msom]
Allows to filter notices by date. [msom]
Shows state filters on notices view. [msom]
Translates chosen strings. [msom]
Moves the login/logout links to the top right. [msom]
Adds an option to indicate if one needs to pay to publish a specific notice. [msom]
Adds a print button to the preview. [msom]
0.1.2 (2017-08-22)
Shows the publisher menu entries for the admin as well. [msom]
Fixes delete icon on user managemenet view. [msom]
0.1.1 (2017-08-21)
Fixes ordering by first issue. [msom]
0.1.0 (2017-08-21)
Shows the name of the logged-in user. [msom]
Reduces the font size of the title in the preview. [msom]
Omits the emails on publishing. [msom]
Sends an email when creating a user. [msom]
Adds statistics to the menu. [msom]
Adds a state filter to the statistics. [msom]
Shows the weekday in the add/edit notice form. [msom]
Adds comments for rejecting notices. [msom]
Sanitizes HTML much stricter. [msom]
Allows to delete users with official notices. [msom]
Allows to filter notices by a search term. [msom]
Allows admins to delete submitted and published notices. [msom]
Adds organizations to notices. [msom]
Removes hierarchy from categories. [msom]
Allows to order notices. [msom]
Adds filters for organizations and categories to the edit/create notice views. [msom]
Allows to show the later issues in the edit/create notice views, too. [msom]
Adds deadlines to issues. [msom]
Adds date filters to statistices. [msom]
Adds an accepted state. [msom]
Caches the user and group name on notices in case they get deleted. [msom]
Caches the user name on notice changes in case they get deleted. [msom]
Shows notices for the same group. [msom]
0.0.4 (2017-08-03)
Switches from onegov.testing to onegov_testing. [href]
0.0.3 (2017-07-17)
Add github deploy key. [msom]
0.0.2 (2017-07-17)
Sends emails on publish/reject. [msom]
Adds a copy option. [msom]
Adds statistics views. [msom]
Adds a preview view. [msom]
0.0.1 (unreleased)
Initial Release. [msom]