| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
| |
Fixes #45.
Tests won't be green until zope.configuration is released with its corresponding fix, as well as zope.security (which needs BTrees).
|
| |
|
|
|
|
| |
* 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.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
And remove our Python implementation that was added in 2009. The two
have now diverged with new features in zope.hookable.
Since 2012, zope.hookable has had a Python implementation. Now, with
4.2, the C extension is an optional build.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Since we no longer support 3.2 we can use the literal syntax.
|
| |
|
|
| |
between zope.security/zope.proxy/zope.component. These previously existed in a zcml.rst doctest only and will fail under PyPy under zopefoundation/zope.security#11 and/or zopefoundation/zope.proxy#8 is fixed.
|
| |
|
|
| |
under PyPy.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
the ``@zope.component.named(name)`` decorator to specify the name.
All tox environments pass and coverage is at 100%.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
- ``tox`` now runs all tests for Python 3.2 and 3.3.
- Enable buildout for Python 3.
- Fixed new failing tests.
|
| | |
|
| | |
|
| |
|
|
|
| |
This avoids pickle references that are redundant with the '__bases__'
pickling.
|
| | |
|
| | |
|
| |
|
|
| |
Madden <jamadden@gmail.com>)
|
| | |
|
| | |
|
| |
|
|
|
|
| |
svn merge --ignore-ancestry -r122753:122812 svn+ssh://svn.zope.org/repos/main/zope.component/branches/chrism-zope.interface-componentregistry
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
the registry returned by getSiteManager instead of the global registry. This
allows the hooking of the getSiteManager method before the load of a ZCML file
to register the components in a custom registry.
|
| |
|
|
|
|
| |
CheckerPublic to securityAdapterFactory wrongly wrapped the factory
into a LocatingUntrustedAdapterFactory.
|
| |
|
|
|
| |
Avoid this.
|
| | |
|
| | |
|
| |
|
|
| |
svn+ssh://svn.zope.org/repos/main/zope.component/branches/sylvain-zcmltestlayer
|
| | |
|
| |
|
|
|
|
| |
Removed code that seems useless;
All tests pass after.
|
| |
|
|
|
| |
not be adapted to a ``IComponentLookup``.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a utility is registered and there was previously a utility
registered for the same interface and name, then the old utility is
unregistered. The 2 bugs related to this:
- There was no ``Unregistered`` for the implicit unregistration. Now
there is.
- The old utility was still held and returned by
getAllUtilitiesRegisteredFor. In other words, it was still
considered registered, eeven though it wasn't. A particularly
negative consequence of this is that the utility is held in memory
or in the database even though it isn't used.
|
| |
|
|
|
| |
zope.component.
|