summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Config with pure python template (#71)Michael Howitz2023-04-1438-648/+1339
| | | | | * Lint the code, improve coverage. * Bumped version for breaking release. * Drop support for Python 2.7, 3.5, 3.6.
* - use cheaper check as suggested by @teythoonJens Vagelpohl2023-01-041-1/+1
|
* Update src/zope/component/tests/test_interface.pyJens Vagelpohl2023-01-031-1/+1
| | | Co-authored-by: Marius Gedminas <marius@gedmin.as>
* - Fix crash when the environment variable `PYTHONOPTIMIZED` is set to `2`Jens Vagelpohl2023-01-022-0/+14
|
* Fix unregistering utilities on old persistent adapter registries.Jason Madden2021-07-092-1/+44
| | | | | | If the particular leaf hadn't been migrated yet this would raise TypeError. Fixes #62
* Fix provideInterface et al to use the current site manager.issue10Jason Madden2021-03-182-8/+74
| | | | | | instead of always the global site manager. Fixes #10
* Make PersistentAdapterRegistry use PersistentMapping/PersistentList with ↵Jason Madden2021-03-182-6/+98
| | | | | | zope.interface 5.3+ Fixes #51
* Merge pull request #58 from zopefoundation/issue9Jason Madden2021-03-182-0/+27
|\ | | | | Fix the subscriber directive when a factory is given that implements an interface and no provides= attribute is specified.
| * Fix the subscriber directive when a factory is given that implements an ↵issue9Jason Madden2021-03-182-0/+27
| | | | | | | | | | | | interface and no provides= attribute is specified. fixes #9
* | Remove backwards compatibility imports.issue59Jason Madden2021-03-185-120/+10
|/ | | | Fixes #59
* - remove tab charactersdataflake/issue_54Jens Vagelpohl2021-03-171-2/+2
|
* - respect permission value for utility factory registrationsJens Vagelpohl2021-03-172-1/+42
|
* Reference documentation improvementsdoc-moduleJason Madden2020-06-266-9/+108
| | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* Add intersphinx connections.Jason Madden2020-03-233-120/+78
| | | | | | And some internal links as well. Remove mentions of 'IServiceService' from interface documentation, as that's not a thing.
* Breaking cyclic requirements on zope.security.Jason Madden2020-03-239-61/+55
| | | | | - 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.
* Ensure resolution order is consistent.issue45Jason Madden2020-03-222-1/+29
| | | | | | Fixes #45. Tests won't be green until zope.configuration is released with its corresponding fix, as well as zope.security (which needs BTrees).
* Add Python 3.7 support (#39)Jeremy Kolbe2018-10-105-20/+15
| | | | | | * Fix Tests * Add a coverage environment to tox and reach 100% coverage.
* 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-0821-100/+181
| | | | | | | | | | | | | 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-083-19/+10
|
* whitespacehookableJason Madden2017-11-072-2/+1
|
* Always depend on zope.hookableJason Madden2017-11-074-125/+9
| | | | | | | | 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.
* Remove obsolete call of searchInterface from interfaceToNamefix_issue_32Philip Bauer2017-09-031-17/+5
|
* 100% coverageissue29Jason Madden2017-06-3017-445/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove _u compat function.Jason Madden2016-08-021-7/+1
| | | | Since we no longer support 3.2 we can use the literal syntax.
* Add failing functiona/integration tests at this level for the interaction ↵Jason Madden2015-05-281-1/+72
| | | | 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.
* Run test_persistentregistry under PyPy/3, and fix it. Doctests still fail ↵Jason Madden2015-05-271-0/+2
| | | | under PyPy.
* Disable 'standalone' test when zope.security is missing.Tres Seaver2015-02-251-35/+42
|
* Restore 100% coverage.Tres Seaver2014-12-111-1/+1
|
* Suppress ResourceWarning under Py3k.Tres Seaver2014-03-171-14/+18
|
* Implemented ability to specify adapter and utility names in Python. UseStephan Richter2014-02-055-12/+71
| | | | | | the ``@zope.component.named(name)`` decorator to specify the name. All tox environments pass and coverage is at 100%.
* Replace failUnless with the new spelling to fix a warning on Python 3.Gediminas Paulauskas2013-07-051-6/+6
|
* Reset the cached adapter_hooks at zope.testing.cleanup.cleanUp time (LP1100501).Jason Madden2013-03-042-1/+15
|
* - Changed "ZODB3" depdendency to "persistent".Stephan Richter2013-02-283-3/+9
| | | | | | - ``tox`` now runs all tests for Python 3.2 and 3.3. - Enable buildout for Python 3. - Fixed new failing tests.
* Defend against hash randomization.Tres Seaver2012-11-211-1/+1
|
* Assert unsupported in older PythonsRoss Patterson2012-08-011-1/+1
|
* Don't pickle registry flattened bases in the 'ro' attribute.Ross Patterson2012-08-012-1/+13
| | | | | This avoids pickle references that are redundant with the '__bases__' pickling.
* Add coverage for pickling/persisting registry bases.Ross Patterson2012-08-011-5/+7
|
* Merge tseaver-test_cleanup branch.Tres Seaver2012-06-2949-6650/+5078
|
* Fixes LP768151: Wrap ``site`` context manager in try/finally (patch by Jason ↵Wolfgang Schnerring2012-04-022-2/+19
| | | | Madden <jamadden@gmail.com>)
* Make tests for ``with site()`` run under Python-2.5Wolfgang Schnerring2011-11-162-3/+5
|
* Add convenience contextmanager for setting the siteWolfgang Schnerring2011-11-163-2/+31
|
* Merge:Chris McDonough2011-09-156-1043/+67
| | | | | | svn merge --ignore-ancestry -r122753:122812 svn+ssh://svn.zope.org/repos/main/zope.component/branches/chrism-zope.interface-componentregistry
* note about interface declaration order for multi adaptersJohannes Raggam2011-02-281-0/+6
|
* forgot to include the zope.component meta.zcml as a dependency of configure.zcmlThomas Lotze2010-09-191-0/+2
|
* no need to clearZCML() in the configure testThomas Lotze2010-09-191-2/+0
|
* added a smoke test for configure.zcmlThomas Lotze2010-09-182-0/+17
|
* use the new zope.testrunner packageThomas Lotze2010-09-182-2/+2
|
* Remove CVS '6997Id$' fossils.Tres Seaver2010-06-0321-41/+1
|
* Prefer the standard libraries doctest module to the one from zope.testing.Hanno Schlichting2010-04-301-1/+3
|