summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Comply with repository policy.Tres Seaver2010-04-0622-22/+22
|
* The ZCML directives provided by zope.component now register the components inFabio Tranchitella2010-03-044-5/+27
| | | | | | | | | 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.
* - Fixed a bug introduced by recent refactoring, where passingSidnei da Silva2010-02-223-1/+81
| | | | | | CheckerPublic to securityAdapterFactory wrongly wrapped the factory into a LocatingUntrustedAdapterFactory.
* The tested testrunner was picking up options from the outer testrunner.Martijn Faassen2010-01-211-2/+2
| | | | | Avoid this.
* Fix a bug where dotted names didn't work in ZCML with ZCMLFileLayer.Martijn Faassen2010-01-211-2/+5
|
* Add eventtesting support for ZCMLLayerBase.Sylvain Viollon2010-01-211-2/+9
|
* merge -r 108354:108362 ↵Jan-Wijbrand Kolman2010-01-215-0/+234
| | | | svn+ssh://svn.zope.org/repos/main/zope.component/branches/sylvain-zcmltestlayer
* merged the conditional-zope.security branch to the trunkFabio Tranchitella2009-11-087-98/+995
|
* All tests passed before;Godefroid Chapelle2009-10-121-6/+5
| | | | | | Removed code that seems useless; All tests pass after.
* - Fixed a problem, where ``queryNextUtility`` could fail if the context couldStephan Richter2009-07-242-1/+10
| | | | | not be adapted to a ``IComponentLookup``.
* Fixed 2 related bugs:Jim Fulton2009-06-023-45/+94
| | | | | | | | | | | | | | | | 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.
* Move over zope:view and zope:resource from zope.app.component intoMartijn Faassen2009-05-214-6/+764
| | | | | zope.component.
* Hook in the hookable tests, which weren't run by default.Martijn Faassen2009-05-211-0/+1
|
* Move testingNextUtility from zope.app.component.testing.Dan Korostelev2009-03-122-0/+107
|
* Add getNextUtility/queryNextUtility functions that used to be in zope.site ↵Dan Korostelev2009-03-114-0/+139
| | | | earlier (and in zope.app.component even more earlier).
* As 'setuptools' is a dependency 'pkg_resources' will be available always. ↵Baiju Muthukadan2009-03-111-7/+1
| | | | Ref: http://mail.zope.org/pipermail/zope-dev/2009-March/035277.html
* Remove IDefaultViewName, add more sensible changelog entry about removal of ↵Dan Korostelev2009-03-081-19/+0
| | | | BBB interfaces.
* Bring back ComponentLookupError to zope.component's root module as it's used ↵Dan Korostelev2009-03-081-0/+1
| | | | in some zope modules.
* Remove the broken IResource interface. It will be added to zope.app.publisher.Dan Korostelev2009-03-081-4/+1
|
* Remove most of deprecated interfaces. IResource and IDefaultViewName are ↵Dan Korostelev2009-03-071-62/+1
| | | | still to be moved to zope.app.publisher and/or zope.publisher.
* Remove duplication of bbb interfaces. Add a marker comment that those things ↵Dan Korostelev2009-03-071-71/+7
| | | | are deprecated.
* Ugh. Fix borked merge.Tres Seaver2009-03-057-231/+209
|
* Merge the 'tseaver-wo_zope_deferredimport' branch:Tres Seaver2009-03-054-4/+220
| | | | | | | | | | | | | - 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.