grokcore.component 4.1__tar.gz → 4.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {grokcore.component-4.1 → grokcore_component-4.1.1}/CHANGES.rst +9 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/PKG-INFO +18 -2
- {grokcore.component-4.1 → grokcore_component-4.1.1}/setup.py +1 -1
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/meta.py +3 -2
- grokcore_component-4.1.1/src/grokcore/component/tests/adapter/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/directive/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/event/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/grokker/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/grokker/onlyonce_fixture/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/inherit/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/order/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/subscriptions/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/utility/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/view/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/conflict.py +26 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/conflictpkg/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/conflictpkg/fixture.py +23 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/excludemanypkg/__init__.py +0 -0
- grokcore_component-4.1.1/src/grokcore/component/tests/zcml/excludepkg/__init__.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/util.py +3 -2
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/PKG-INFO +18 -2
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/SOURCES.txt +3 -0
- grokcore.component-4.1/src/grokcore/component/tests/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/adapter/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/directive/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/event/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/grokker/onlyonce_fixture/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/inherit/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/order/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/subscriptions/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/utility/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/view/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/zcml/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/zcml/excludemanypkg/__init__.py +0 -1
- grokcore.component-4.1/src/grokcore/component/tests/zcml/excludepkg/__init__.py +0 -1
- {grokcore.component-4.1 → grokcore_component-4.1.1}/CONTRIBUTING.md +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/COPYRIGHT.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/CREDITS.rst +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/INSTALL.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/LICENSE.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/MANIFEST.in +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/README.rst +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/TODO.rst +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/buildout.cfg +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/setup.cfg +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/__init__.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/__init__.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/compat.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/components.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/decorators.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/directive.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/interfaces.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/meta.zcml +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/subscription.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/templates/default_display_form.pt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/templates/default_edit_form.pt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/testing.py +0 -0
- {grokcore.component-4.1/src/grokcore/component/tests/grokker → grokcore_component-4.1.1/src/grokcore/component/tests}/__init__.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/adapter.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/adapterdecorator.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/alphabetical.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/classcontext.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/classcontextimported.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/classcontextmultiple.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/classcontextmultiple_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/classorinterface.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/conflict.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/functionasargument_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/functioncontext.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/globaladapter.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/implementsmany.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/implementsnone.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/implementsnonemulti.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/importedmodel.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/importedmodel2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/interface.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/interfacemodule.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/modulecontext.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/modulecontextimported.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/modulecontextmultiple.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/modulecontextmultiple_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/multiadapter.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/multiadaptsnone.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/multiple.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/namedadapter.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/noarguments_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/nomodel.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/oldstyleclass.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/order.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/providerdecorator.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/api.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/directive/argumenterror.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/directive/argumenterror_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/directive/multipletimes.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/event/errorconditions.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/event/errorconditions_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/event/provideHandler.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/event/subscriber.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grok_component.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/continue_scanning.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/continue_scanning_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/grokcomponent.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/onlyonce.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/onlyonce_fixture/_meta.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/onlyonce_fixture/component.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/onlyonce_fixture/implementation.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/priority.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/priority_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/inherit/inherit.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/inherit/inherit_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/arg_orderdirective.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/combined_orderdirective.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/combinednoorder_orderdirective.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/inter1.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/inter2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/noarg_orderdirective.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/nodirective.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/decorator.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/multisubscriptions.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/multisubscriptions_no_adapts.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/multisubscriptions_no_interface.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/ordered_multisubscriptions.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/ordered_subscriptions.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/subscriptions.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/subscriptions_no_context.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/subscriptions/subscriptions_no_interface.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/test_grok.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/conflict.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/implementsmany.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/implementsmany2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/implementsnone.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/implementsnone2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/providesmany.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/providesmany2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/providesnone.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/providesnone2.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/utility.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/view/nomodulename.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/view/nomodulename_fixture.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/exclude.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/excludemany.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/excludemanypkg/file_1.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/excludemanypkg/test_asdf.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/excludepkg/sample.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/zcml.py +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/dependency_links.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/namespace_packages.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/not-zip-safe +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/requires.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/top_level.txt +0 -0
- {grokcore.component-4.1 → grokcore_component-4.1.1}/tox.ini +0 -0
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Changes
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
4.1.1 (2025-01-28)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
- Adjust discriminator for adapters so it matches the one used by the
|
|
8
|
+
``zope.component`` ZCML directive (``<adapter factory=""/>``) and thus a
|
|
9
|
+
conflict error is raised if there are two registrations for the same
|
|
10
|
+
discriminator.
|
|
11
|
+
|
|
12
|
+
|
|
4
13
|
4.1 (2023-03-21)
|
|
5
14
|
----------------
|
|
6
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: grokcore.component
|
|
3
|
-
Version: 4.1
|
|
3
|
+
Version: 4.1.1
|
|
4
4
|
Summary: Grok-like configuration for basic components (adapters, utilities, subscribers)
|
|
5
5
|
Home-page: https://github.com/zopefoundation/grokcore.component
|
|
6
6
|
Author: Grok Team
|
|
@@ -19,8 +19,15 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
20
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
21
|
Requires-Python: >=3.7
|
|
22
|
-
Provides-Extra: test
|
|
23
22
|
License-File: LICENSE.txt
|
|
23
|
+
Requires-Dist: setuptools
|
|
24
|
+
Requires-Dist: martian>=1.2
|
|
25
|
+
Requires-Dist: zope.component
|
|
26
|
+
Requires-Dist: zope.configuration
|
|
27
|
+
Requires-Dist: zope.interface
|
|
28
|
+
Requires-Dist: zope.testing
|
|
29
|
+
Provides-Extra: test
|
|
30
|
+
Requires-Dist: zope.event; extra == "test"
|
|
24
31
|
|
|
25
32
|
This package provides base classes of basic component types for the
|
|
26
33
|
Zope Component Architecture, as well as means for configuring and
|
|
@@ -268,6 +275,15 @@ multiple objects.
|
|
|
268
275
|
Changes
|
|
269
276
|
=======
|
|
270
277
|
|
|
278
|
+
4.1.1 (2025-01-28)
|
|
279
|
+
------------------
|
|
280
|
+
|
|
281
|
+
- Adjust discriminator for adapters so it matches the one used by the
|
|
282
|
+
``zope.component`` ZCML directive (``<adapter factory=""/>``) and thus a
|
|
283
|
+
conflict error is raised if there are two registrations for the same
|
|
284
|
+
discriminator.
|
|
285
|
+
|
|
286
|
+
|
|
271
287
|
4.1 (2023-03-21)
|
|
272
288
|
----------------
|
|
273
289
|
|
|
@@ -45,10 +45,11 @@ class AdapterGrokker(martian.ClassGrokker):
|
|
|
45
45
|
martian.directive(grokcore.component.name)
|
|
46
46
|
|
|
47
47
|
def execute(self, factory, config, context, provides, name, **kw):
|
|
48
|
+
for_ = (context,)
|
|
48
49
|
config.action(
|
|
49
|
-
discriminator=('adapter',
|
|
50
|
+
discriminator=('adapter', for_, provides, name),
|
|
50
51
|
callable=grokcore.component.provideAdapter,
|
|
51
|
-
args=(factory,
|
|
52
|
+
args=(factory, for_, provides, name),
|
|
52
53
|
)
|
|
53
54
|
return True
|
|
54
55
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""
|
|
2
|
+
It raises ConflictError if ZCML and grok try to register an adapter from/to
|
|
3
|
+
the same classes.
|
|
4
|
+
|
|
5
|
+
>>> xmlconfig.string('''
|
|
6
|
+
... <configure
|
|
7
|
+
... xmlns="http://namespaces.zope.org/zope"
|
|
8
|
+
... xmlns:grok="http://namespaces.zope.org/grok">
|
|
9
|
+
... <include package="zope.component" file="meta.zcml"/>
|
|
10
|
+
... <include package="grokcore.component" file="meta.zcml"/>
|
|
11
|
+
... <adapter factory=".fixture.ZCMLHome" />
|
|
12
|
+
... <grok:grok package="." />
|
|
13
|
+
... </configure>''', context)
|
|
14
|
+
Traceback (most recent call last):
|
|
15
|
+
ConfigurationConflictError: ...
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from zope.configuration import xmlconfig
|
|
20
|
+
|
|
21
|
+
from grokcore.component.tests.zcml import conflictpkg
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
context = xmlconfig.ConfigurationMachine()
|
|
25
|
+
xmlconfig.registerCommonDirectives(context)
|
|
26
|
+
context.package = conflictpkg
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from zope import component
|
|
2
|
+
from zope import interface
|
|
3
|
+
|
|
4
|
+
import grokcore.component as grok
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Cave(grok.Context):
|
|
8
|
+
pass
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class IHome(interface.Interface):
|
|
12
|
+
pass
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@grok.implementer(IHome)
|
|
16
|
+
class GrokHome(grok.Adapter):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@component.adapter(Cave)
|
|
21
|
+
@interface.implementer(IHome)
|
|
22
|
+
class ZCMLHome:
|
|
23
|
+
pass
|
|
File without changes
|
|
File without changes
|
|
@@ -34,8 +34,9 @@ def sort_components(components, key=None):
|
|
|
34
34
|
"""Sort a list of components using the information provided by
|
|
35
35
|
`grok.order`.
|
|
36
36
|
"""
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
if key is None:
|
|
38
|
+
sort_key = _sort_key
|
|
39
|
+
else:
|
|
39
40
|
def sort_key(item):
|
|
40
41
|
return _sort_key(key(item))
|
|
41
42
|
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: grokcore.component
|
|
3
|
-
Version: 4.1
|
|
3
|
+
Version: 4.1.1
|
|
4
4
|
Summary: Grok-like configuration for basic components (adapters, utilities, subscribers)
|
|
5
5
|
Home-page: https://github.com/zopefoundation/grokcore.component
|
|
6
6
|
Author: Grok Team
|
|
@@ -19,8 +19,15 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
20
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
21
|
Requires-Python: >=3.7
|
|
22
|
-
Provides-Extra: test
|
|
23
22
|
License-File: LICENSE.txt
|
|
23
|
+
Requires-Dist: setuptools
|
|
24
|
+
Requires-Dist: martian>=1.2
|
|
25
|
+
Requires-Dist: zope.component
|
|
26
|
+
Requires-Dist: zope.configuration
|
|
27
|
+
Requires-Dist: zope.interface
|
|
28
|
+
Requires-Dist: zope.testing
|
|
29
|
+
Provides-Extra: test
|
|
30
|
+
Requires-Dist: zope.event; extra == "test"
|
|
24
31
|
|
|
25
32
|
This package provides base classes of basic component types for the
|
|
26
33
|
Zope Component Architecture, as well as means for configuring and
|
|
@@ -268,6 +275,15 @@ multiple objects.
|
|
|
268
275
|
Changes
|
|
269
276
|
=======
|
|
270
277
|
|
|
278
|
+
4.1.1 (2025-01-28)
|
|
279
|
+
------------------
|
|
280
|
+
|
|
281
|
+
- Adjust discriminator for adapters so it matches the one used by the
|
|
282
|
+
``zope.component`` ZCML directive (``<adapter factory=""/>``) and thus a
|
|
283
|
+
conflict error is raised if there are two registrations for the same
|
|
284
|
+
discriminator.
|
|
285
|
+
|
|
286
|
+
|
|
271
287
|
4.1 (2023-03-21)
|
|
272
288
|
----------------
|
|
273
289
|
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/SOURCES.txt
RENAMED
|
@@ -126,8 +126,11 @@ src/grokcore/component/tests/view/__init__.py
|
|
|
126
126
|
src/grokcore/component/tests/view/nomodulename.py
|
|
127
127
|
src/grokcore/component/tests/view/nomodulename_fixture.py
|
|
128
128
|
src/grokcore/component/tests/zcml/__init__.py
|
|
129
|
+
src/grokcore/component/tests/zcml/conflict.py
|
|
129
130
|
src/grokcore/component/tests/zcml/exclude.py
|
|
130
131
|
src/grokcore/component/tests/zcml/excludemany.py
|
|
132
|
+
src/grokcore/component/tests/zcml/conflictpkg/__init__.py
|
|
133
|
+
src/grokcore/component/tests/zcml/conflictpkg/fixture.py
|
|
131
134
|
src/grokcore/component/tests/zcml/excludemanypkg/__init__.py
|
|
132
135
|
src/grokcore/component/tests/zcml/excludemanypkg/file_1.py
|
|
133
136
|
src/grokcore/component/tests/zcml/excludemanypkg/test_asdf.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# make this directory a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# fixture package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# this is a package
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/conflict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/multiple.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/nomodel.py
RENAMED
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/adapter/order.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/event/subscriber.py
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grok_component.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/onlyonce.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/grokker/priority.py
RENAMED
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/inherit/inherit.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/inter1.py
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/order/inter2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/test_grok.py
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/conflict.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/utility/utility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/exclude.py
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore/component/tests/zcml/excludemany.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/requires.txt
RENAMED
|
File without changes
|
{grokcore.component-4.1 → grokcore_component-4.1.1}/src/grokcore.component.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|