Skip to main content

Contains code shared by all OneGov applications.

Project description

Run the Tests

Install tox and run it:

pip install tox
tox

Limit the tests to a specific python version:

tox -e py27

Conventions

Onegov Core follows PEP8 as close as possible. To test for it run:

tox -e pep8

Onegov Core uses Semantic Versioning

Build Status

Build Status

Coverage

Project Coverage

Latests PyPI Release

Latest PyPI Release

License

onegov.core is released under GPLv2

Changelog

Unreleased

0.7.2 (2015-10-15)

  • Improves i18n support, removing bugs, adding support for de_CH and the like. [href]

  • The format_number function now uses the locale specific grouping/decimal separators. [href]

0.7.1 (2015-10-13)

  • The csv encoding detection function will now either look for cp1152 or utf-8. [href]

0.7.0 (2015-10-12)

  • Drops Python 2 support! [href]

  • Adds a csv module which helps with importing flawed csv files. [href]

0.6.2 (2015-10-07)

  • Adds an is_subpath function. [href]

0.6.1 (2015-10-05)

  • Adds a relative_url utility function. [href]

  • Merges multiple translations into one for faster lookups. [href]

0.6.0 (2015-10-02)

  • Allows more than one translation directory to be set by the application. This enables us to use translations defined in packages outside the app. For example, onegov.form now keeps its own translations. Onegov.town and onegov.election_day simply point to onegov.form’s translations to have them included. [href]

0.5.1 (2015-09-11)

  • Adds an utility function to check if an object is iterable but not a string. [href]

0.5.0 (2015-09-10)

  • E-Mails containing unicode are now sent properly. [href]

  • Adds on_insert/on_update/on_delete signals to the session manager. [href]

0.4.28 (2015-09-07)

  • Adds a is_uuid utility function. [href]

  • Limits the ‘subset’ call for Pagination collections to once per instance. [href]

0.4.27 (2015-08-31)

  • Fixes has_column upgrade function not checking the given table. [href]

  • Fixes browser session chocking on an invalid cookie. [href]

0.4.26 (2015-08-28)

  • Fixes more than one task per module crashing the upgrade. [href]

  • Always run upgrades may now indicate if they did anything useful. If not, they are hidden from the upgrade output. [href]

0.4.25 (2015-08-24)

  • The upgrades table is now prefilled with all modules and tasks, when the schema is first created. Fixes #8. [href]

  • Ensures unique upgrade task function names. See #8. [href]

0.4.24 (2015-08-20)

  • Adds support page titles consisting solely on emojis. [href]

  • Transactions are now automatically retried once if they fail. If the second attempt also fails, a 409 Conflict HTTP Code is returned. [href]

0.4.23 (2015-08-14)

  • Binds all e-mails to the transaction. Only if the transaction commits are the e-mails sent.

  • The memcached key is now limited in its size. [href]

  • Properly support postgres extensions. [href]

0.4.22 (2015-08-12)

  • Fixes more unicode email sending issues. [href]

0.4.21 (2015-08-12)

  • Adds a helper function that puts a scheme in front of urls without one. [href]

0.4.20 (2015-08-12)

  • Linkify now escapes all html by default (except for the ‘a’ tag). [href]

  • Adds proper support for unicode email addresses (only the domain and the text - the local part won’t be supported for now as it is rare and doesn’t even pass Chrome’s or Firefox’s email validation). [href]

  • Removes the default order_by clause on adjacency lists. [href]

  • Adds the ability to profile requests and selected pieces of code. [href]

0.4.19 (2015-08-10)

  • Use bcrypt instead of py-bcrypt as the latter has been deprecated by passlib. [href]

  • Support hstore types. [msom]

0.4.18 (2015-08-06)

  • Adds a function that returns the object associated with a path. [href]

  • Fix options not being translated on i18n-enabled forms. [href]

0.4.17 (2015-08-04)

  • Replaces pylibmc with python-memcached, with the latter now having Python 3 support. [href]

  • Fix onegov-core upgrade hanging forever. [href]

0.4.16 (2015-07-30)

  • Make sure we don’t get a circulare dependency between the connection and the session. [href]

  • Adds the ability to define multiple bases on the session manager. [href]

  • Switch postgres isolation level to SERIALIZABLE for all sessions. [href]

0.4.15 (2015-07-29)

  • Gets rid of global state used by the session manager. [href]

  • Adds the ability to define configurations in independent methods (allowing for onegov.core.Framework extensions to provide their own configuration). [href]

  • Adds functions to create and deserialize URL safe tokens. [msom]

0.4.14 (2015-07-17)

  • Adds a sendmail command that replaces repoze.sendmail’s qp. [href]

0.4.13 (2015-07-16)

  • Adds a data transfer command to download data from a onegov cloud server and install them locally. Requires ssh permissions to function.

  • Adds the ability to send e-mails to a maildir, instead of directly to an SMTP server. [href]

0.4.12 (2015-07-15)

  • Adds the ability to render a template directly. [href]

0.4.11 (2015-07-14)

  • Make sure upgrade steps are only added once per record. [href]

  • Add has_column function to upgrade context. [href]

0.4.10 (2015-07-14)

  • Adds the ability to render a single chameleon macro. [href]

0.4.9 (2015-07-13)

  • Adds a relative date function to the layout. [href]

0.4.8 (2015-07-13)

  • Adds a pagination base class for use with collections. [href]

  • Adds an isodate format function to the layout base. [href]

0.4.7 (2015-07-08)

  • Adds the ability to send emails. [href]

0.4.6 (2015-07-06)

  • Pass the request in addition to the model when dynamically building the form class in the form directive. [href]

  • Fixes onegov.core.utils.rchop not working correctly. [href]

0.4.5 (2015-07-02)

  • Fixes SQLAlchemy error occurring if more than one model used the new AdjacencyList base class. [href]

0.4.4 (2015-07-01)

  • Adds a content mixin for meta/content JSON fields. [href]

  • Adds an abstract AdjacencyList implementation (refactored from onegov.page). [href]

  • Adds quote_plus and unquote_plus to compat imports. [treinhard]

0.4.3 (2015-06-30)

  • Adds the ability to format numbers through the layout class. [href]

0.4.2 (2015-06-29)

  • Added a new ‘hidden_from_public’ property which may be set on any model handled by onegov.core Applications. If said property is found and it is True, anonymous users are forbidden from viewing it.

    This enables applications to dynamically set the visibilty of any model. [href]

0.4.1 (2015-06-26)

  • Ensure that the bind schema doesn’t stick around to cause test failures. [href]

0.4.0 (2015-06-26)

  • Removes support for Python 3.3. Use 2.7 or 3.3. [href]

  • Adds colors to the sql debug output. [href]

  • Fix json encoder/decode not working with lists and generators. [href]

0.3.9 (2015-06-23)

  • Moves sanitize_html and linkify functions from onegov.town to core. [href]

0.3.8 (2015-06-18)

  • Remove parentheses from url when normalizing it. [href]

0.3.7 (2015-06-17)

  • Adds a groupby function that returns lists instead of generators. [href]

  • Include a layout base class useful for applications that render html. [href]

  • Stop throwing an error if no translation is registered. [href]

0.3.6 (2015-06-12)

  • Fix encoding error when generating the theme on certain platforms. [href]

  • Make sure the last_change timestamp property works for single objects. [href]

0.3.5 (2015-06-03)

  • Adds a convenience property to timestamps that returns either the modified- or the created-timestamp. [href]

0.3.4 (2015-06-03)

  • Fixes SQL statement debugger failing if a statement is executed with a list of parameters. [href]

0.3.3 (2015-06-02)

  • Accepts wtform’s data attribute in request.get_form. [href]

0.3.2 (2015-05-29)

  • Fix pofile loading not working in certain environments. [href]

0.3.1 (2015-05-28)

  • Adds a method to list all schemas found in the database. [href]

0.3.0 (2015-05-20)

  • Introduces a custom json encoder/decoder that handles additional types. [href]

0.2.0 (2015-05-18)

  • Tighten security around static file serving. [href]

  • Urls generated from titles no longer contain double dashes (’–‘). [href]

  • The browser session now only adds a session_id to the cookies if there’s a change in the browser session. [href]

  • Adds the ability to count and print the sql queries that go into a single request. [href]

  • Store all login information server-side. The client only gets a random session id scoped to the application. [href]

  • Make sure that signatures are only valid for the origin application. [href]

0.1.0 (2015-05-06)

  • The form directive now also accepts a factory function. [href]

0.0.2 (2015-05-05)

  • The CSRF protection now associates a random secret with the session. The random secret is then used to check if the CSRF token is valid. [href]

  • Cache the translator on the request to be slightly more efficient. [href]

0.0.1 (2015-04-29)

  • Initial Release [href]

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onegov.core-0.7.2.tar.gz (79.2 kB view details)

Uploaded Source

Built Distribution

onegov.core-0.7.2-py3-none-any.whl (104.8 kB view details)

Uploaded Python 3

File details

Details for the file onegov.core-0.7.2.tar.gz.

File metadata

  • Download URL: onegov.core-0.7.2.tar.gz
  • Upload date:
  • Size: 79.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onegov.core-0.7.2.tar.gz
Algorithm Hash digest
SHA256 2d62b4eec81955fc74574974e2df6119db6afa04b5d68e9675af98371b4928a6
MD5 b8a4c16ff5ffabe8267325a60da5a365
BLAKE2b-256 427eec3c1c5c756c0ea4846b52f99636507af4f8922557d0b323c3460d78575c

See more details on using hashes here.

File details

Details for the file onegov.core-0.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for onegov.core-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10c43f78e635ae483c9a42869880a1d03f622c09a4d90ea0565c78d6dd7030a1
MD5 110633456cc842de03fbfa21fa5c4fd7
BLAKE2b-256 4d2335f34a1517b64a5380d854dbfa13b9be7dc917a899fd2c8601d1828d95c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page