collective.limitfilesizepanel


Namecollective.limitfilesizepanel JSON
Version 3.0.3 PyPI version JSON
download
home_pagehttp://plone.org/products/collective.limitfilesizepanel
SummaryConfigure files and images size limit through Plone control panel
upload_time2023-09-27 13:14:15
maintainer
docs_urlNone
authorRedTurtle Technology
requires_python>=3.7
licenseGPL version 2
keywords plone plonegov limit filesize validation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This is an helper package that setup a RedTurtle's Plone site ready to work with Volto.


|python| |version| |ci| |coverage| |downloads| |license|

.. |python| image:: https://img.shields.io/pypi/pyversions/collective.limitfilesizepanel.svg
  :target: https://pypi.python.org/pypi/collective.limitfilesizepanel/

.. |version| image:: http://img.shields.io/pypi/v/collective.limitfilesizepanel.svg
  :target: https://pypi.python.org/pypi/collective.limitfilesizepanel

.. |ci| image:: https://github.com/RedTurtle/collective.limitfilesizepanel/actions/workflows/tests.yml/badge.svg
  :target: https://github.com/RedTurtle/collective.limitfilesizepanel/actions

.. |downloads| image:: https://img.shields.io/pypi/dm/collective.limitfilesizepanel.svg
   :target: https://pypi.org/project/collective.limitfilesizepanel/

.. |license| image:: https://img.shields.io/pypi/l/collective.limitfilesizepanel.svg
    :target: https://pypi.org/project/collective.limitfilesizepanel/
    :alt: License

.. |coverage| image:: https://coveralls.io/repos/github/redturtle/collective.limitfilesizepanel/badge.svg?branch=master
    :target: https://coveralls.io/github/redturtle/collective.limitfilesizepanel?branch=main
    :alt: Coverage
    

Introduction
============

This product allows you to set a max siza validation for file and image fields in content-types.

How to use it
=============

Just add the product to the buildout and install it in the site you want to use.

A new "*Limit file size settings*" option will be added in the control panel, where you can change the
*File* and *Image* attachments.

No users will be able to upload files that exceed the limit. Also in TinyMCE text editor.

.. image:: https://raw.githubusercontent.com/RedTurtle/collective.limitfilesizepanel/93abb025ecae1070e28ead13874fc07dc25de52e/docs/collective.limitfilesizepanel-1.3-01.png
   :alt: Settings

Advanced use
------------

While default general purpose file and image settings can be OK for most common scenarios,
you can also define custom settings for specific content types: just fill the
"**Settings for other content types and fields**" section.

.. image:: https://raw.githubusercontent.com/RedTurtle/collective.limitfilesizepanel/93abb025ecae1070e28ead13874fc07dc25de52e/docs/collective.limitfilesizepanel-1.3-02.png
   :alt: Type's settings

Configuration in that section wins over global configuration.

Validator bypass
================

If some users need to bypass the validation and upload some larger files, there is a new permission
"*collective.limitfilesizepanel: Bypass limit size*" that allows to do this.

You only need to set this permission to some roles, and they'll have no upload limits.

Compatibility
=============

This products runs on Python3 and has been tested on:

* Plone 5.2

For older versions, please refer to 2.x branch/tags

Credits
=======

Developed with the support of:

* `Regione Emilia Romagna`__
* `Province of Vicenza`__

  .. image:: http://www.provincia.vicenza.it/logo_provincia_vicenza.png
     :alt: Province of Vicenza - logo

All of them supports the `PloneGov initiative`__.

__ http://www.regione.emilia-romagna.it/
__ http://www.provincia.vicenza.it/
__ http://www.plonegov.it/

Authors
=======

This product was developed by RedTurtle Technology team.

.. image:: http://www.redturtle.it/redturtle_banner.png
   :alt: RedTurtle Technology Site
   :target: http://www.redturtle.it/

Changelog
=========

3.0.3 (2023-09-27)
------------------

- Fix check in validators if product is not installed.
  [cekk]


3.0.2 (2023-05-02)
------------------

- Raise custom ValidationError to have a 400 on restapi calls.
  [cekk]


3.0.1 (2023-05-02)
------------------

- Raise ValueError instead Invalid for restapi calls.
  [cekk]


3.0.0 (2023-04-27)
------------------

- Python3 support.
  [cekk]
- Drop usage of persistent fields in registry. Now we use collective.z3cform.jsonwidget.
  [cekk]
- Change validator to work also with restapi calls.
  [cekk]


2.1.2 (2018-07-17)
------------------

- Fix release
  [cekk]

2.1.1 (2018-07-17)
------------------

- Fix permission for upload view
  [eikichi18]


2.1.0 (2018-05-09)
------------------

- Fix validators for Dexterity fields. Now works well with Files and images
  [cekk]
- Add support for Tinymce validation also for Plone 5
  [cekk]


2.0.3 (2018-01-30)
------------------

- Don't break validation for view with no spcific context.
  [bsuttor]


2.0.2 (2017-09-15)
------------------
- Fix brown bag release
  [cekk]

2.0.1 (2017-09-14)
------------------

- Don't break validation if the product isn't installed.
  If not installed, shouldn't do nothing.
  [cekk]

- Fix patched__call__ if the product isn't istalled.
  [arsenico13]

2.0.0 (2017-05-04)
------------------

- Version 1.3 don't uninstall cleanly
  [keul]
- Now validates also files and images created in TinyMCE
  [cekk]
- Dexterity support
  [cekk]

1.3 (2015-07-06)
----------------

- Added type+field configuration
  [keul]
- Pyflakes cleanup
  [keul]

1.2 (2013-08-19)
----------------

- Add German translations.
  [jone]
- Ensure consistency of megabyte symbols to be ``MB``.
  [davidjb]


1.1.2 (2013-03-26)
------------------

- run rolemap configurations when upgrading from older versions
  [keul]

1.1.1 (2013-03-26)
------------------

- fixed pypi classifiers [keul]

1.1 (2013-03-26)
----------------

- Added a proper uninstall step [keul]
- Now based on `collective.monkeypatcher`__ [keul]
- i18n refactoring [keul]
- Do not try to automatically validate file size for already existings attachments.

  This provent to get validation error when editing file after size limit
  has been changed [keul]

- Added new permission "collective.limitfilesizepanel: Manage limit file size settings".
  Users with this permission can bypass size validation [cekk]

  __ http://pypi.python.org/pypi/collective.monkeypatcher

1.0 (Unreleased)
----------------

- Initial release

            

Raw data

            {
    "_id": null,
    "home_page": "http://plone.org/products/collective.limitfilesizepanel",
    "name": "collective.limitfilesizepanel",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "plone plonegov limit filesize validation",
    "author": "RedTurtle Technology",
    "author_email": "sviluppoplone@redturtle.it",
    "download_url": "https://files.pythonhosted.org/packages/70/8c/9ac520581bcf1f001cd62d50b0bdb2bf58801572e9c62dc60998ba7520dc/collective.limitfilesizepanel-3.0.3.tar.gz",
    "platform": null,
    "description": "This is an helper package that setup a RedTurtle's Plone site ready to work with Volto.\n\n\n|python| |version| |ci| |coverage| |downloads| |license|\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/collective.limitfilesizepanel.svg\n  :target: https://pypi.python.org/pypi/collective.limitfilesizepanel/\n\n.. |version| image:: http://img.shields.io/pypi/v/collective.limitfilesizepanel.svg\n  :target: https://pypi.python.org/pypi/collective.limitfilesizepanel\n\n.. |ci| image:: https://github.com/RedTurtle/collective.limitfilesizepanel/actions/workflows/tests.yml/badge.svg\n  :target: https://github.com/RedTurtle/collective.limitfilesizepanel/actions\n\n.. |downloads| image:: https://img.shields.io/pypi/dm/collective.limitfilesizepanel.svg\n   :target: https://pypi.org/project/collective.limitfilesizepanel/\n\n.. |license| image:: https://img.shields.io/pypi/l/collective.limitfilesizepanel.svg\n    :target: https://pypi.org/project/collective.limitfilesizepanel/\n    :alt: License\n\n.. |coverage| image:: https://coveralls.io/repos/github/redturtle/collective.limitfilesizepanel/badge.svg?branch=master\n    :target: https://coveralls.io/github/redturtle/collective.limitfilesizepanel?branch=main\n    :alt: Coverage\n    \n\nIntroduction\n============\n\nThis product allows you to set a max siza validation for file and image fields in content-types.\n\nHow to use it\n=============\n\nJust add the product to the buildout and install it in the site you want to use.\n\nA new \"*Limit file size settings*\" option will be added in the control panel, where you can change the\n*File* and *Image* attachments.\n\nNo users will be able to upload files that exceed the limit. Also in TinyMCE text editor.\n\n.. image:: https://raw.githubusercontent.com/RedTurtle/collective.limitfilesizepanel/93abb025ecae1070e28ead13874fc07dc25de52e/docs/collective.limitfilesizepanel-1.3-01.png\n   :alt: Settings\n\nAdvanced use\n------------\n\nWhile default general purpose file and image settings can be OK for most common scenarios,\nyou can also define custom settings for specific content types: just fill the\n\"**Settings for other content types and fields**\" section.\n\n.. image:: https://raw.githubusercontent.com/RedTurtle/collective.limitfilesizepanel/93abb025ecae1070e28ead13874fc07dc25de52e/docs/collective.limitfilesizepanel-1.3-02.png\n   :alt: Type's settings\n\nConfiguration in that section wins over global configuration.\n\nValidator bypass\n================\n\nIf some users need to bypass the validation and upload some larger files, there is a new permission\n\"*collective.limitfilesizepanel: Bypass limit size*\" that allows to do this.\n\nYou only need to set this permission to some roles, and they'll have no upload limits.\n\nCompatibility\n=============\n\nThis products runs on Python3 and has been tested on:\n\n* Plone 5.2\n\nFor older versions, please refer to 2.x branch/tags\n\nCredits\n=======\n\nDeveloped with the support of:\n\n* `Regione Emilia Romagna`__\n* `Province of Vicenza`__\n\n  .. image:: http://www.provincia.vicenza.it/logo_provincia_vicenza.png\n     :alt: Province of Vicenza - logo\n\nAll of them supports the `PloneGov initiative`__.\n\n__ http://www.regione.emilia-romagna.it/\n__ http://www.provincia.vicenza.it/\n__ http://www.plonegov.it/\n\nAuthors\n=======\n\nThis product was developed by RedTurtle Technology team.\n\n.. image:: http://www.redturtle.it/redturtle_banner.png\n   :alt: RedTurtle Technology Site\n   :target: http://www.redturtle.it/\n\nChangelog\n=========\n\n3.0.3 (2023-09-27)\n------------------\n\n- Fix check in validators if product is not installed.\n  [cekk]\n\n\n3.0.2 (2023-05-02)\n------------------\n\n- Raise custom ValidationError to have a 400 on restapi calls.\n  [cekk]\n\n\n3.0.1 (2023-05-02)\n------------------\n\n- Raise ValueError instead Invalid for restapi calls.\n  [cekk]\n\n\n3.0.0 (2023-04-27)\n------------------\n\n- Python3 support.\n  [cekk]\n- Drop usage of persistent fields in registry. Now we use collective.z3cform.jsonwidget.\n  [cekk]\n- Change validator to work also with restapi calls.\n  [cekk]\n\n\n2.1.2 (2018-07-17)\n------------------\n\n- Fix release\n  [cekk]\n\n2.1.1 (2018-07-17)\n------------------\n\n- Fix permission for upload view\n  [eikichi18]\n\n\n2.1.0 (2018-05-09)\n------------------\n\n- Fix validators for Dexterity fields. Now works well with Files and images\n  [cekk]\n- Add support for Tinymce validation also for Plone 5\n  [cekk]\n\n\n2.0.3 (2018-01-30)\n------------------\n\n- Don't break validation for view with no spcific context.\n  [bsuttor]\n\n\n2.0.2 (2017-09-15)\n------------------\n- Fix brown bag release\n  [cekk]\n\n2.0.1 (2017-09-14)\n------------------\n\n- Don't break validation if the product isn't installed.\n  If not installed, shouldn't do nothing.\n  [cekk]\n\n- Fix patched__call__ if the product isn't istalled.\n  [arsenico13]\n\n2.0.0 (2017-05-04)\n------------------\n\n- Version 1.3 don't uninstall cleanly\n  [keul]\n- Now validates also files and images created in TinyMCE\n  [cekk]\n- Dexterity support\n  [cekk]\n\n1.3 (2015-07-06)\n----------------\n\n- Added type+field configuration\n  [keul]\n- Pyflakes cleanup\n  [keul]\n\n1.2 (2013-08-19)\n----------------\n\n- Add German translations.\n  [jone]\n- Ensure consistency of megabyte symbols to be ``MB``.\n  [davidjb]\n\n\n1.1.2 (2013-03-26)\n------------------\n\n- run rolemap configurations when upgrading from older versions\n  [keul]\n\n1.1.1 (2013-03-26)\n------------------\n\n- fixed pypi classifiers [keul]\n\n1.1 (2013-03-26)\n----------------\n\n- Added a proper uninstall step [keul]\n- Now based on `collective.monkeypatcher`__ [keul]\n- i18n refactoring [keul]\n- Do not try to automatically validate file size for already existings attachments.\n\n  This provent to get validation error when editing file after size limit\n  has been changed [keul]\n\n- Added new permission \"collective.limitfilesizepanel: Manage limit file size settings\".\n  Users with this permission can bypass size validation [cekk]\n\n  __ http://pypi.python.org/pypi/collective.monkeypatcher\n\n1.0 (Unreleased)\n----------------\n\n- Initial release\n",
    "bugtrack_url": null,
    "license": "GPL version 2",
    "summary": "Configure files and images size limit through Plone control panel",
    "version": "3.0.3",
    "project_urls": {
        "Homepage": "http://plone.org/products/collective.limitfilesizepanel"
    },
    "split_keywords": [
        "plone",
        "plonegov",
        "limit",
        "filesize",
        "validation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "708c9ac520581bcf1f001cd62d50b0bdb2bf58801572e9c62dc60998ba7520dc",
                "md5": "746dad08706b66d86de13221c802060a",
                "sha256": "82d6bfa69eedeaa8dfc5fe1bd294fd12af34ae319c1221a2eaf75bf45773efa7"
            },
            "downloads": -1,
            "filename": "collective.limitfilesizepanel-3.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "746dad08706b66d86de13221c802060a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 83372,
            "upload_time": "2023-09-27T13:14:15",
            "upload_time_iso_8601": "2023-09-27T13:14:15.041340Z",
            "url": "https://files.pythonhosted.org/packages/70/8c/9ac520581bcf1f001cd62d50b0bdb2bf58801572e9c62dc60998ba7520dc/collective.limitfilesizepanel-3.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-27 13:14:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "collective.limitfilesizepanel"
}
        
Elapsed time: 0.14073s