summaryrefslogtreecommitdiff
path: root/src/zope/interface/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the string formatting rules for the Invalid exceptions.Jason Madden2020-02-101-59/+162
| | | | | | As per review. Also include the actual failing implementation object in the BrokenMethodImplementation to make it easier to track down what's going on when inheritance is involved.
* Make verifyObject/Class collect and raise all errors instead of only the first.issue171Jason Madden2020-02-081-21/+71
| | | | Fixes #171.
* Make verification errors more readable and useful.Jason Madden2020-02-071-21/+65
| | | | | | | | | | | | | | Eliminate the trailing newlines and blank spaces (the code called them "a stupid artifact"). Include the name of the defining interface (so the user can easily look up any requirements on the attribute) and, for methods, the expected signature (no more guessing about how many arguments are required!). This is implemented by giving Attribute and Method useful reprs and strs. Previously, they just had the defaults. Fixes #170
* Add __all__ to all modules.issue153Jason Madden2020-02-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #153 The items that went in each ``__all__`` are based on what is documented: $ rg --no-filename 'import' docs/ -trst | tr -s "[:blank:]" | sort | uniq | grep zope >>> from pprint import pprint >>> from zope.interface import * >>> from zope.interface import Interface >>> from zope.interface import Interface, Attribute, implementer >>> from zope.interface import alsoProvides >>> from zope.interface import classImplements >>> from zope.interface import classImplementsOnly >>> from zope.interface import directlyProvidedBy >>> from zope.interface import directlyProvides >>> from zope.interface import implementedBy >>> from zope.interface import implementer >>> from zope.interface import implementer_only >>> from zope.interface import noLongerProvides >>> from zope.interface import providedBy >>> from zope.interface import provider >>> from zope.interface.adapter import AdapterRegistry >>> from zope.interface.declarations import Declaration >>> from zope.interface.declarations import InstanceDeclarations >>> from zope.interface.declarations import ProvidesClass >>> from zope.interface.declarations import named >>> from zope.interface.exceptions import BrokenImplementation >>> from zope.interface.exceptions import Invalid >>> from zope.interface.interface import Specification >>> from zope.interface.interface import adapter_hooks >>> from zope.interface.verify import verifyObject >>> import gc >>> import zope.interface And also some personal judgement about what the public API is that I'm more than happy to have reviewed.
* Remove CVS-era Id fossils.Tres Seaver2010-06-031-2/+0
|
* Comply with repository policy.Tres Seaver2010-04-061-1/+1
|
* Revert incorrect copyright header update.Christian Theune2009-12-171-1/+1
|
* Updating copyright header after transfer of ownership to the Zope FoundationChristian Theune2009-11-021-1/+1
|
* Moving code to satellite.Christian Theune2007-05-031-0/+69
|
* Removed interface copyJim Fulton2006-03-111-69/+0
|
* Correcting borked move.Nathan Yergler2006-02-271-0/+69