Skip to main content

Common utilities, vocabularies, taxonomies for imio.smartweb & co products

Project description

CI Status Coveralls Latest Version Egg Status https://img.shields.io/pypi/pyversions/imio.smartweb.common.svg?style=plastic:alt:Supported-PythonVersions License

imio.smartweb.common

Provides various common needs for smartweb related sites :

  • topics field behavior with topics vocabulary select widget

  • Iam field behavior with “iam” vocabulary select widget

  • rich description feature, with bold & newlines, limited to a maximum of chars (see config.py)

  • countries vocabulary

  • cities vocabulary (values are stored in registry)

  • faceted relative path widget

  • breadcrumb index that stores the full object path with titles (and not ids)

  • has_leadimage index that stores if there is a lead_image on the object or not

  • cropping scales selection mechanism per content-type / field (with adapters)

  • help texts (descriptions) on forms above the fields and not below

  • @search-filter REST endpoint to get all terms (and titles) of metadatas from search request results

  • colophon viewlet override to add legal mention, accessibility info, cookies preferences & copyright

  • cookies opt-in support for analytics and iframes (Accept/Refuse all or detailed preferences)

Custom Add / Edit forms are also provided to :

  • Transform tabs into expandable fieldsets

  • Hide lead image caption field (never used)

Utils fonctions are also provided for :

  • vocabulary term translation

  • object geolocation (with IAddress schema)

A (very) simplified TinyMCE configuration is also made.

Translations

This product has been translated into

  • French

Installation

Install imio.smartweb.common by adding it to your buildout:

[buildout]

...

eggs =
    imio.smartweb.common

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.1 (2022-12-20)

  • Add monkeypatch to fix TTW resource calling See https://github.com/plone/Products.CMFPlone/issues/3705 [laulaz]

  • Uninstall collective.js.jqueryui [boulch]

  • Remove faceted deprecated bundles [boulch]

  • Migrate to Plone 6 : remove dexteritytextindexer, use new simplified resources registry, fix TinyMCE configuration and images scales, manual minimized js [laulaz, boulch]

1.0.10 (2022-11-22)

  • Ignore batch related query parameters for search-filters endpoint [laulaz]

1.0.9 (2022-11-15)

  • Add helper method to get language from smartweb REST requests This is needed for multilingual authentic sources [laulaz]

  • Allow to translate vocabulary terms titles in search-filters endpoint This is needed for multilingual authentic sources [laulaz]

1.0.8 (2022-08-08)

  • MWEB-54 : Update TinyMCE : Add non breaking space option [boulch]

1.0.7 (2022-06-13)

  • Add connection link in colophon [laulaz]

1.0.6 (2022-06-07)

  • Add ban_physicalpath method (taken from policy) [boulch, laulaz]

1.0.5 (2022-05-16)

  • Refactor rich description to retrieve html on a any description (from context or from other ways) [boulch]

1.0.4 (2022-05-03)

  • Limit uploaded files sizes to 20Mo with JS (without reaching the server) [laulaz]

  • Add help text on lead image field also on edit forms [laulaz]

1.0.3 (2022-05-02)

  • Hide faceted actions [boulch]

1.0.2 (2022-04-25)

  • Hide unwanted upgrades from site-creation and quickinstaller [boulch]

  • Add local manager role and sharing permissions rolemap [boulch]

  • Add help text on lead image fields [boulch]

  • Fix privacy views JS calls (sometimes called on Zope root instead of Plone root) [laulaz]

  • Add Subject keywords to SearchableText index [laulaz]

1.0.1 (2022-03-16)

  • Allow readers, editors and reviewers to see inactive (expired) contents [laulaz]

1.0 (2022-03-08)

  • Avoid traceback if @@get_analytics is called outside Plone site [laulaz]

1.0a11 (2022-02-21)

  • Load Analytics via JS call to avoid non-privacy aware caching [laulaz]

  • Change privacy views permissions to zope.Public [laulaz]

1.0a10 (2022-02-10)

  • Hide ical import related actions [laulaz]

1.0a9 (2022-02-01)

1.0a8 (2022-01-24)

  • Change colophon copyright position [laulaz]

  • Change cookies viewlet / overlay logic. We now show (simplified) overlay only to see detailed options about cookies because viewlet allows to Accept / Refuse all cookies directly [laulaz]

  • Add Cookies preferences link in colophon [laulaz]

  • Change some cookies-related texts [laulaz]

  • Fix iframes transform with existing classes or when there are several iframes [laulaz]

1.0a7 (2022-01-19)

  • Update buildout to use Plone 6.0.0a2 released version [laulaz]

  • Remove portal messages from cookies settings overlay [laulaz]

1.0a6 (2022-01-13)

  • Add cookies opt-in support for analytics and iframes [laulaz]

  • Override colophon viewlet to display legal mention, accessibility info and copyright links (dependency on imio.gdpr) [laulaz]

1.0a5 (2021-12-16)

  • Fix vocabulary term translation (missing lang) [laulaz]

1.0a4 (2021-11-23)

  • Add utility to get a vocabulary [boulch]

1.0a3 (2021-11-16)

  • Avoid traceback if configure_faceted is called on non-configured type (ex: on default collections at Plone install) [laulaz]

1.0a2 (2021-11-05)

  • Fix setup.py classifiers & URLs [laulaz]

1.0a1 (2021-11-05)

  • Initial release. [boulch]

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

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

Source Distribution

imio.smartweb.common-1.1.tar.gz (61.7 kB view details)

Uploaded Source

File details

Details for the file imio.smartweb.common-1.1.tar.gz.

File metadata

  • Download URL: imio.smartweb.common-1.1.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.0

File hashes

Hashes for imio.smartweb.common-1.1.tar.gz
Algorithm Hash digest
SHA256 788963d29bdad99fdb2f55430ce3c4fe4bcb1e5990c6f42430bc89586d980c43
MD5 25fc9dbda0af6c3a4d6b2174620c9b08
BLAKE2b-256 6cab1ad55e90dd9ad80182dc3018e36f8acc7817436569f2266c141d99a9a207

See more details on using hashes here.

Supported by

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