summaryrefslogtreecommitdiff
path: root/src/zope/component/_api.py
Commit message (Collapse)AuthorAgeFilesLines
* Config with pure python template (#71)Michael Howitz2023-04-141-7/+29
| | | | | * Lint the code, improve coverage. * Bumped version for breaking release. * Drop support for Python 2.7, 3.5, 3.6.
* Reference documentation improvementsdoc-moduleJason Madden2020-06-261-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* Tweak import groups in _api.pyJason Madden2017-11-081-3/+1
|
* Produce deprecation warnings for deprecated names in interfaces.py and ↵remove-unused-importsJason Madden2017-11-081-8/+7
| | | | | | | | | | | | | 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.
* Remove unused, but not BWC exported, imports from _api.Jason Madden2017-11-081-10/+2
|
* whitespacehookableJason Madden2017-11-071-1/+0
|
* Always depend on zope.hookableJason Madden2017-11-071-6/+3
| | | | | | | | 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.
* Merge tseaver-test_cleanup branch.Tres Seaver2012-06-291-11/+21
|
* Remove CVS '6997Id$' fossils.Tres Seaver2010-06-031-2/+0
|
* Comply with repository policy.Tres Seaver2010-04-061-1/+1
|
* - Fixed a problem, where ``queryNextUtility`` could fail if the context couldStephan Richter2009-07-241-1/+4
| | | | | not be adapted to a ``IComponentLookup``.
* Add getNextUtility/queryNextUtility functions that used to be in zope.site ↵Dan Korostelev2009-03-111-0/+31
| | | | earlier (and in zope.app.component even more earlier).
* Ugh. Fix borked merge.Tres Seaver2009-03-051-6/+12
|
* Merge the 'tseaver-wo_zope_deferredimport' branch:Tres Seaver2009-03-051-3/+3
| | | | | | | | | | | | | - Added a pure-Python 'hookable' implementation, for use when 'zope.hookable' is not present. - Undeprecated the interfaces in the 'bbb' package: the promised removal hasn't happened, and other core pacakges are still using them. Moved them into ``zope.component.interfaces``, their original location, and the one from which consumers have been importing them. - Removed use of 'zope.deferredimport' by breaking import cycles.
* Remove deprecated stuff. Remove duplicated adapter declaration code. Clean ↵Dan Korostelev2009-03-021-42/+1
| | | | up documentation a bit.
* Fixed a misleading comment and used hookable as a decorator because the code ↵Shane Hathaway2008-07-121-6/+5
| | | | is easier to read that way.
* Moving code to satellite.Christian Theune2007-05-031-0/+240