| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
interface and no provides= attribute is specified.
fixes #9
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Make it possible to use :mod:`zope.component`
- Provide a concise list of all the available APIs in that module and
link them to their in-depth descriptions.
- Fix several xref errors
- Add documentation for setHooks/resetHooks.
This also makes it possible to get useful help at the REPL or command
line:
$ python -c 'import zope.component; help(zope.component.getAdapters)'
Help on function getAdapters in module zope.component._api:
getAdapters(objects, provided, context=None)
Look for all matching adapters to a provided interface for
objects
Return a list of adapters that match. If an adapter is named,
only the most specific adapter of a given name is returned.
.. seealso::
Function `~zope.component.getAdapters` for notes, and
`~zope.component.interfaces.IComponentArchitecture` for the defining interface.
|
| |
|
|
|
|
| |
And some internal links as well.
Remove mentions of 'IServiceService' from interface documentation, as that's not a thing.
|
| |
|
|
|
| |
- Use unittest runner directly (remove unneeded test_suite() methods). The same number of tests get run, but coverage will go down since the security-relevant tests just get skipped.
- Catch import errors due to inconsistent IROs and trigger test skips.
|
| |
|
|
|
|
|
|
|
|
|
| |
ZODB 5.5.0 added an "import mock" to ZODB.tests.util (or "from unittest
import mock" on Python 3, which is in the standard library). ZODB[test]
included the new dependency, but zope.component wasn't using that for
tests.
However, ZODB.tests.util.DB was just an import of
ZODB.MappingStorage.DB, so we can just as easily use the latter and
avoid the extra dependency.
|
| | |
|
| |
|
|
|
|
| |
* Fix Tests
* Add a coverage environment to tox and reach 100% coverage.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
registry.py
And also in hookable.py
Do this using zope.deferredimport and zope.deprecation, two new
dependencies. This introduces a transitive dependency on zope.proxy,
but that was already part of the 'security' extra. zope.proxy runs
on pypy but it doesn't yet support making the C extension optional (https://github.com/zopefoundation/zope.proxy/issues/26)
Also drop the use of _compat._BLANK everywhere and just use the literal.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add change note and badge to readme.
Remove unused class and function.
Omit standalonetests.py entirely from coverage.
Another unused class.
Incorporate feedback in test__api.py
* Bring back _callFUT and make the queryAdapterInContext tests call it
* Change raise NotImplentedError into specific fails_if_called() calls.
Remove redundant argument now that all test in Test_adapts pass under all versions.
Remove NotImplementedError from test_globalregistry.py
Remove NotImplementedError from test_hookable.py
Remove NotImplementedError from test_registry.py
Remove NotImplementedError from test_security.py
Remove NotImplementedError from test_zcml.py
Remove NotImplementedError from test_factory.py
Document ZCML feature and devmode.
Really accept all arguments unless opted out.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Drop pypy3.3-5.5-alpha
Sphinx needs Python 2.7 or 3.4+ to run, and this is a (really old)
version of Python 3.3. (Unfortunately the beta of PyPy3.5 does not
appear to be available.)
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
[ci skip]
|
| | |
|
| | |
|
| |
|
|
|
|
| |
the ``@zope.component.named(name)`` decorator to specify the name.
All tox environments pass and coverage is at 100%.
|
| | |
|
| | |
|
| | |
|
| |
|