[Checkins] SVN: grok/branches/0.11/ Changed a few remaining
references to ``grok.grok`` and
Philipp von Weitershausen
philikon at philikon.de
Sun Nov 11 06:11:15 EST 2007
Log message for revision 81746:
Changed a few remaining references to ``grok.grok`` and
``grok.grok_component`` to their correct equivalents in
``grok.testing``.
Changed:
U grok/branches/0.11/CHANGES.txt
U grok/branches/0.11/src/grok/tests/grokker/grokcomponent.py
U grok/branches/0.11/src/grok/tests/template/pluggability.py
-=-
Modified: grok/branches/0.11/CHANGES.txt
===================================================================
--- grok/branches/0.11/CHANGES.txt 2007-11-11 11:10:29 UTC (rev 81745)
+++ grok/branches/0.11/CHANGES.txt 2007-11-11 11:11:15 UTC (rev 81746)
@@ -11,6 +11,10 @@
now also loads the ZPT template factories so that unit tests that
need to configure views with ZPT templates continue to work.
+* Changed a few remaining references to ``grok.grok`` and
+ ``grok.grok_component`` to their correct equivalents in
+ ``grok.testing``.
+
0.11 (2007-11-08)
=================
Modified: grok/branches/0.11/src/grok/tests/grokker/grokcomponent.py
===================================================================
--- grok/branches/0.11/src/grok/tests/grokker/grokcomponent.py 2007-11-11 11:10:29 UTC (rev 81745)
+++ grok/branches/0.11/src/grok/tests/grokker/grokcomponent.py 2007-11-11 11:11:15 UTC (rev 81746)
@@ -18,7 +18,7 @@
To grok this adapter, you can simply write this::
- >>> grok.grok_component('MyAdapter', MyAdapter)
+ >>> grok.testing.grok_component('MyAdapter', MyAdapter)
True
We can now use the adapter::
@@ -40,14 +40,14 @@
This adapter does not supply its own context. Trying to do what we did
before will therefore fail::
- >>> grok.grok_component('SecondAdapter', SecondAdapter)
+ >>> grok.testing.grok_component('SecondAdapter', SecondAdapter)
Traceback (most recent call last):
...
GrokError: No module-level context for <class 'grok.tests.grokker.grokcomponent.SecondAdapter'>, please use grok.context.
So we need to supply the context ourselves::
- >>> grok.grok_component('SecondAdapter', SecondAdapter, context=SomeClass)
+ >>> grok.testing.grok_component('SecondAdapter', SecondAdapter, context=SomeClass)
True
Now we can use the SecondAdapter as well::
Modified: grok/branches/0.11/src/grok/tests/template/pluggability.py
===================================================================
--- grok/branches/0.11/src/grok/tests/template/pluggability.py 2007-11-11 11:10:29 UTC (rev 81745)
+++ grok/branches/0.11/src/grok/tests/template/pluggability.py 2007-11-11 11:11:15 UTC (rev 81746)
@@ -1,7 +1,7 @@
"""
Testing the plugging in of a template language
- >>> grok.grok(__name__)
+ >>> grok.testing.grok(__name__)
>>> cave = Cave()
>>> from zope.publisher.browser import TestRequest
More information about the Checkins
mailing list