Products.validation


NameProducts.validation JSON
Version 3.0.1 PyPI version JSON
download
home_pagehttps://github.com/plone/Products.validation
SummaryData validation package for Zope
upload_time2024-12-16 22:40:03
maintainerNone
docs_urlNone
authorBenjamin Saller
requires_python>=3.8
licenseGPL
keywords zope validation regex email
VCS
bugtrack_url
requirements setuptools zc.buildout
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

Data validation package for Zope.

Changelog
=========

.. You should *NOT* be adding new change log entries to this file.
   You should create a file in the news directory instead.
   For helpful instructions, please see:
   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst

.. towncrier release notes start

3.0.1 (2024-12-16)
------------------

Bug fixes:


- Remove unneeded code from ``recursiveTranslate`` that broke with latest Zope 5.11.
  ``zope.i18n`` already supports recursive translation out of the box since 2008.
  [maurits] (#70)


3.0.0 (2024-08-21)
------------------

Breaking changes:


- Removed `Products/validation/validators/validator.py`.
  This had backwards compatibility imports in a way that did not work on Python 3.
  So apparently no one needed this so far.
  [maurits] (#60)
- Drop support for Plone 5.2 and for Python 3.7 and lower.
  Only Plone 6.0 and 6.1 are supported now.
  Note that in Plone 6.1, this package is no longer tested together with the core.
  It has been moved to the ecosystem versions.
  [maurits] (#60)


New features:


- Move translations from plone.app.locales to here
  [erral] (#11)


Internal:


- Update configuration files.
  [plone devs]


2.1.3 (2020-06-24)
------------------

Bug fixes:


- Fixes #6 long deprecated InitializeClass import which did not work  in Zope 5.
  [jensens] (#6)


2.1.2 (2020-04-23)
------------------

Bug fixes:


- Minor packaging updates. (#1)


2.1.1 (2018-11-01)
------------------

Bug fixes:


- Use new utils.check_id from CMFPlone. [maurits] (#4)


2.1 (2017-08-27)
----------------

New features:

- Python 3 compatibility
  [tomgross]

Bug fixes:

- Remove unnecessary test dependencies
  [tomgross]


2.0.2 (2016-08-08)
------------------

Bug fixes:

- Use zope.interface decorator.
  [gforcada]

2.0.1 (2015-02-23)
------------------

- Accept base domain names longer than 6 chars like .brussels
  [gotcha]

2.0 (2010-07-18)
----------------

- No changes.

2.0b1 (2009-12-27)
------------------

- Added missing zope.i18n(messageid) dependencies.
  [hannosch]

2.0a1 (2009-11-13)
------------------

- Cleaned up package metadata.
  [hannosch]

- Declare test dependencies in an extra and fixed deprecation warnings
  for use of Globals.
  [hannosch]

- Removed useless assert statements. Assert is not a function.
  [hannosch]

- Purge old zope2 Interface interfaces for Zope 2.12 compatibility.
  Consider branching before this commit if release required before Plone 4.
  [elro]

- Cleaned up lots of old BBB code.
  [hannosch]

- Email validator did not allow apostrophe in the local part of an email
  address. This closes http://dev.plone.org/plone/ticket/7947.
  [hannosch]

- Relaxed EmptyValidator requirement that REQUEST has a form.
  This closes http://dev.plone.org/plone/ticket/7346.
  [bostrick, hannosch]

1.6.4 - unreleased
------------------

- Cut the validation short when there is only one validator and this
  validator is 'sufficient', which means it does not need to validate.
  [maurits]

- Removed an unnecessary call on Zope startup to the test method in chain.py.
  [maurits]

- Fix: ValidatorError was used (at least theoretically) in chain.py
  but not imported.
  [maurits]

1.6.3 (2009-04-23)
------------------

- Fixed the translated error messages to use Message objects correctly. The
  mapping attribute of Messages can only contain Unicode. Added a helper
  method `safe_unicode` to convert non-unicode string data into Unicode.
  [hannosch]

- Fixed a SyntaxError in RangeValidator.
  [hannosch]

1.6.2 (2009-04-02)
------------------

- Merged in translated error messages for validators from branches/1.6.
  (see http://dev.plone.org/archetypes/changeset/10942)
  This might break 3rd party doctests (unicode returned instead of string).
  [fRiSi]

1.5.1 (2007-08-16)
------------------

1.5.1-b2 (2006-03-20)
---------------------

- Removed tests/runalltests.py and tests/framework.py as they have
  outlived their usefulness. To run tests use Zope's testrunner:
  ./bin/zopectl test --nowarn -s Products.validation
  [stefan]

1.5.1-b1 (2006-02-27)
---------------------

- *cough*
  [nouri]

1.5.0-final (2006-12-15)
------------------------

- note for release-managers: The version-bump to 1.5 was a bit early, but now
  as we have it, i keep it and next release number in the cycle needed for
  Archetypes 1.4.2 (used for Plone 2.5.2) of PortalTransforms is then the 1.5
  final.
  We dont need increasing of release numbers because of Plone 3.0,
  Archetypes 1.5, ... if there's no change in the dependent product, like
  this one.
  [jensens]

1.5.0-a1 (2006-10-25)
---------------------

- Removed an unused import which caused a deprecation warning.
  [hannosch]

1.4.1-final (2006-09-08)
------------------------

1.3.9
-----

- Modify the email validator to allow capitals in the domain. This fixes
  http://dev.plone.org/archetypes/ticket/663.
  [wichert]

post 1.3.4-final02 (2006-01-15)
-------------------------------

- Spring-cleaning of tests infrastructure.
  [hannosch]

1.4.0-beta1 (2006-03-26)
------------------------

- removed marker for odd archetypes 1.3 styles version checks
  [jensens]

1.3.4-final02 (2006-01-15)
--------------------------

- nothing again - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.4-RC1 (2005-12-29)
----------------------

- nothing again - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.3-final06 (2005-10-11)
--------------------------

- nothing again - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.3-final05 (2005-08-30)
--------------------------

- nothing again - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.3-final04 (2005-08-07)
--------------------------

- nothing - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.3-final03 (2005-08-01)
--------------------------

- nothing - the odd version checking needs a version change to stick to
  Archetypes version again.
  [yenzenz]

1.3.3-final02 (2005-07-17)
--------------------------

- nothing - the odd version checking needs a version change to stick to
  Archetypes version.
  [yenzenz]

1.3.3-final (2005-07-06)
------------------------

- added Expression Validator
  [zwork]

1.3.2-final02 (2005-05-20)
--------------------------

- nothing (I hate to write this. But the odd version checking needs it).
  [yenzenz]

1.3.2-rc1 (2005-03-25)
----------------------

- Added isMailto validator for mailto:user@host.tld
  [tiran]

- Added protocol list for isUrl validator with lot's of additional protocols:
  http, ftp, irc, news, imap, gopher, jabber, webdav, smb, fish, ldap, pop3,
  smtp, sftp, ssh
  The ``*s`` variants like https are included by the re.
  [tiran]

1.3.1-final (2005-03-05)
------------------------

- Added isValidId validator. Thanks to Francis J. Lacoste for
  his first implementation and Christian Theune for his CMF
  only implementation.
  [tiran]

- Fixed isUnixLikeName validator
  [tiran]

1.3.0-9 (2004-10-17)
--------------------

- Fixed [ 1040556 ] validators type mismatch (was [1036938])
  [tiran]

1.3.0-8
--------------------

- Fixed a bug in MaxSizeValidator, added some comments and made it much faster.
  [tiran]

1.3.0-7 (2004-09-25)
--------------------

- Updated README.txt
  [tiran]

- Fixed last failing unit tests
  [tiran]

1.3.0-6 (2004-09-17)
--------------------

- Removed old setup.py
  [tiran]

- Added isEmptyNoError validator to fix [ 1023153 ] isEmpty validator must
  return empty string when it failed.
  {tiran]

- Don't show error msg in chain when a validator doesn't return StringTypes. It
  was required for isEmptyNoError validator which is returning False.
  {tiran]

1.3.0-5 (2004-09-04)
--------------------

- Fixed typo in RegexValidator
  [tiran]

- Unit tests now based on ZopeTestCase
  [tiran]

1.3.0-4 (2004-08-16)
--------------------

- nothing changed

1.3.0-3 (2004-08-06)
--------------------

- Nothing changed

1.3.0-2 (2004-07-29)
--------------------

- Nothing changed

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/plone/Products.validation",
    "name": "Products.validation",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Zope validation regex email",
    "author": "Benjamin Saller",
    "author_email": "plone-developers@lists.sourceforge.net",
    "download_url": "https://files.pythonhosted.org/packages/46/5b/41ac11bfcca9db073766bdb84b893a8b44b782275ed9a6f6266352eebeab/products_validation-3.0.1.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\nData validation package for Zope.\n\nChangelog\n=========\n\n.. You should *NOT* be adding new change log entries to this file.\n   You should create a file in the news directory instead.\n   For helpful instructions, please see:\n   https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst\n\n.. towncrier release notes start\n\n3.0.1 (2024-12-16)\n------------------\n\nBug fixes:\n\n\n- Remove unneeded code from ``recursiveTranslate`` that broke with latest Zope 5.11.\n  ``zope.i18n`` already supports recursive translation out of the box since 2008.\n  [maurits] (#70)\n\n\n3.0.0 (2024-08-21)\n------------------\n\nBreaking changes:\n\n\n- Removed `Products/validation/validators/validator.py`.\n  This had backwards compatibility imports in a way that did not work on Python 3.\n  So apparently no one needed this so far.\n  [maurits] (#60)\n- Drop support for Plone 5.2 and for Python 3.7 and lower.\n  Only Plone 6.0 and 6.1 are supported now.\n  Note that in Plone 6.1, this package is no longer tested together with the core.\n  It has been moved to the ecosystem versions.\n  [maurits] (#60)\n\n\nNew features:\n\n\n- Move translations from plone.app.locales to here\n  [erral] (#11)\n\n\nInternal:\n\n\n- Update configuration files.\n  [plone devs]\n\n\n2.1.3 (2020-06-24)\n------------------\n\nBug fixes:\n\n\n- Fixes #6 long deprecated InitializeClass import which did not work  in Zope 5.\n  [jensens] (#6)\n\n\n2.1.2 (2020-04-23)\n------------------\n\nBug fixes:\n\n\n- Minor packaging updates. (#1)\n\n\n2.1.1 (2018-11-01)\n------------------\n\nBug fixes:\n\n\n- Use new utils.check_id from CMFPlone. [maurits] (#4)\n\n\n2.1 (2017-08-27)\n----------------\n\nNew features:\n\n- Python 3 compatibility\n  [tomgross]\n\nBug fixes:\n\n- Remove unnecessary test dependencies\n  [tomgross]\n\n\n2.0.2 (2016-08-08)\n------------------\n\nBug fixes:\n\n- Use zope.interface decorator.\n  [gforcada]\n\n2.0.1 (2015-02-23)\n------------------\n\n- Accept base domain names longer than 6 chars like .brussels\n  [gotcha]\n\n2.0 (2010-07-18)\n----------------\n\n- No changes.\n\n2.0b1 (2009-12-27)\n------------------\n\n- Added missing zope.i18n(messageid) dependencies.\n  [hannosch]\n\n2.0a1 (2009-11-13)\n------------------\n\n- Cleaned up package metadata.\n  [hannosch]\n\n- Declare test dependencies in an extra and fixed deprecation warnings\n  for use of Globals.\n  [hannosch]\n\n- Removed useless assert statements. Assert is not a function.\n  [hannosch]\n\n- Purge old zope2 Interface interfaces for Zope 2.12 compatibility.\n  Consider branching before this commit if release required before Plone 4.\n  [elro]\n\n- Cleaned up lots of old BBB code.\n  [hannosch]\n\n- Email validator did not allow apostrophe in the local part of an email\n  address. This closes http://dev.plone.org/plone/ticket/7947.\n  [hannosch]\n\n- Relaxed EmptyValidator requirement that REQUEST has a form.\n  This closes http://dev.plone.org/plone/ticket/7346.\n  [bostrick, hannosch]\n\n1.6.4 - unreleased\n------------------\n\n- Cut the validation short when there is only one validator and this\n  validator is 'sufficient', which means it does not need to validate.\n  [maurits]\n\n- Removed an unnecessary call on Zope startup to the test method in chain.py.\n  [maurits]\n\n- Fix: ValidatorError was used (at least theoretically) in chain.py\n  but not imported.\n  [maurits]\n\n1.6.3 (2009-04-23)\n------------------\n\n- Fixed the translated error messages to use Message objects correctly. The\n  mapping attribute of Messages can only contain Unicode. Added a helper\n  method `safe_unicode` to convert non-unicode string data into Unicode.\n  [hannosch]\n\n- Fixed a SyntaxError in RangeValidator.\n  [hannosch]\n\n1.6.2 (2009-04-02)\n------------------\n\n- Merged in translated error messages for validators from branches/1.6.\n  (see http://dev.plone.org/archetypes/changeset/10942)\n  This might break 3rd party doctests (unicode returned instead of string).\n  [fRiSi]\n\n1.5.1 (2007-08-16)\n------------------\n\n1.5.1-b2 (2006-03-20)\n---------------------\n\n- Removed tests/runalltests.py and tests/framework.py as they have\n  outlived their usefulness. To run tests use Zope's testrunner:\n  ./bin/zopectl test --nowarn -s Products.validation\n  [stefan]\n\n1.5.1-b1 (2006-02-27)\n---------------------\n\n- *cough*\n  [nouri]\n\n1.5.0-final (2006-12-15)\n------------------------\n\n- note for release-managers: The version-bump to 1.5 was a bit early, but now\n  as we have it, i keep it and next release number in the cycle needed for\n  Archetypes 1.4.2 (used for Plone 2.5.2) of PortalTransforms is then the 1.5\n  final.\n  We dont need increasing of release numbers because of Plone 3.0,\n  Archetypes 1.5, ... if there's no change in the dependent product, like\n  this one.\n  [jensens]\n\n1.5.0-a1 (2006-10-25)\n---------------------\n\n- Removed an unused import which caused a deprecation warning.\n  [hannosch]\n\n1.4.1-final (2006-09-08)\n------------------------\n\n1.3.9\n-----\n\n- Modify the email validator to allow capitals in the domain. This fixes\n  http://dev.plone.org/archetypes/ticket/663.\n  [wichert]\n\npost 1.3.4-final02 (2006-01-15)\n-------------------------------\n\n- Spring-cleaning of tests infrastructure.\n  [hannosch]\n\n1.4.0-beta1 (2006-03-26)\n------------------------\n\n- removed marker for odd archetypes 1.3 styles version checks\n  [jensens]\n\n1.3.4-final02 (2006-01-15)\n--------------------------\n\n- nothing again - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.4-RC1 (2005-12-29)\n----------------------\n\n- nothing again - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.3-final06 (2005-10-11)\n--------------------------\n\n- nothing again - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.3-final05 (2005-08-30)\n--------------------------\n\n- nothing again - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.3-final04 (2005-08-07)\n--------------------------\n\n- nothing - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.3-final03 (2005-08-01)\n--------------------------\n\n- nothing - the odd version checking needs a version change to stick to\n  Archetypes version again.\n  [yenzenz]\n\n1.3.3-final02 (2005-07-17)\n--------------------------\n\n- nothing - the odd version checking needs a version change to stick to\n  Archetypes version.\n  [yenzenz]\n\n1.3.3-final (2005-07-06)\n------------------------\n\n- added Expression Validator\n  [zwork]\n\n1.3.2-final02 (2005-05-20)\n--------------------------\n\n- nothing (I hate to write this. But the odd version checking needs it).\n  [yenzenz]\n\n1.3.2-rc1 (2005-03-25)\n----------------------\n\n- Added isMailto validator for mailto:user@host.tld\n  [tiran]\n\n- Added protocol list for isUrl validator with lot's of additional protocols:\n  http, ftp, irc, news, imap, gopher, jabber, webdav, smb, fish, ldap, pop3,\n  smtp, sftp, ssh\n  The ``*s`` variants like https are included by the re.\n  [tiran]\n\n1.3.1-final (2005-03-05)\n------------------------\n\n- Added isValidId validator. Thanks to Francis J. Lacoste for\n  his first implementation and Christian Theune for his CMF\n  only implementation.\n  [tiran]\n\n- Fixed isUnixLikeName validator\n  [tiran]\n\n1.3.0-9 (2004-10-17)\n--------------------\n\n- Fixed [ 1040556 ] validators type mismatch (was [1036938])\n  [tiran]\n\n1.3.0-8\n--------------------\n\n- Fixed a bug in MaxSizeValidator, added some comments and made it much faster.\n  [tiran]\n\n1.3.0-7 (2004-09-25)\n--------------------\n\n- Updated README.txt\n  [tiran]\n\n- Fixed last failing unit tests\n  [tiran]\n\n1.3.0-6 (2004-09-17)\n--------------------\n\n- Removed old setup.py\n  [tiran]\n\n- Added isEmptyNoError validator to fix [ 1023153 ] isEmpty validator must\n  return empty string when it failed.\n  {tiran]\n\n- Don't show error msg in chain when a validator doesn't return StringTypes. It\n  was required for isEmptyNoError validator which is returning False.\n  {tiran]\n\n1.3.0-5 (2004-09-04)\n--------------------\n\n- Fixed typo in RegexValidator\n  [tiran]\n\n- Unit tests now based on ZopeTestCase\n  [tiran]\n\n1.3.0-4 (2004-08-16)\n--------------------\n\n- nothing changed\n\n1.3.0-3 (2004-08-06)\n--------------------\n\n- Nothing changed\n\n1.3.0-2 (2004-07-29)\n--------------------\n\n- Nothing changed\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Data validation package for Zope",
    "version": "3.0.1",
    "project_urls": {
        "Homepage": "https://github.com/plone/Products.validation"
    },
    "split_keywords": [
        "zope",
        "validation",
        "regex",
        "email"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97545524f380079dafc12c034f288663ba0ce51a32f63cbfa6e8bcbfa2a1bcad",
                "md5": "5bebd824b12327961774049ee6b32b82",
                "sha256": "3609892e50d2078985716401aa2912642a9fd49a41ef22fabb6706024bcf1919"
            },
            "downloads": -1,
            "filename": "Products.validation-3.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5bebd824b12327961774049ee6b32b82",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 107253,
            "upload_time": "2024-12-16T22:40:00",
            "upload_time_iso_8601": "2024-12-16T22:40:00.806386Z",
            "url": "https://files.pythonhosted.org/packages/97/54/5524f380079dafc12c034f288663ba0ce51a32f63cbfa6e8bcbfa2a1bcad/Products.validation-3.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "465b41ac11bfcca9db073766bdb84b893a8b44b782275ed9a6f6266352eebeab",
                "md5": "90f94238113166ea31ab27dfd57632db",
                "sha256": "9ae44720bed1988d7bde332bb9963f4f97c243d2e937dfa17e7a8a4165d2c1ce"
            },
            "downloads": -1,
            "filename": "products_validation-3.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "90f94238113166ea31ab27dfd57632db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 49224,
            "upload_time": "2024-12-16T22:40:03",
            "upload_time_iso_8601": "2024-12-16T22:40:03.589013Z",
            "url": "https://files.pythonhosted.org/packages/46/5b/41ac11bfcca9db073766bdb84b893a8b44b782275ed9a6f6266352eebeab/products_validation-3.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 22:40:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "plone",
    "github_project": "Products.validation",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "setuptools",
            "specs": [
                [
                    "==",
                    "33.1.1"
                ]
            ]
        },
        {
            "name": "zc.buildout",
            "specs": [
                [
                    "==",
                    "2.8.0"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "products.validation"
}
        
Elapsed time: 0.41813s