[Checkins] SVN: grok/branches/gotcha-configuration-actions/src/grok/tests/ fixed tests; not finished

Godefroid Chapelle gotcha at bubblenet.be
Tue Oct 9 07:20:05 EDT 2007


Log message for revision 80736:
  fixed tests; not finished

Changed:
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/__init__.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapter.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapterdecorator.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/alphabetical.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontext.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontextimported.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsmany.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnone.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnonemulti.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interface.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interfacemodule.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontext.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontextimported.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadapter.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadaptsnone.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiple.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/namedadapter.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/nomodel.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/oldstyleclass.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/order.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/error/error.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/event/subscriber.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_name.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc3.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_role_name.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_json.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_xmlrpc.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/security/view_decorator.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsmany.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone2.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_class.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_directive.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/publicnoncontainer.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/utility/utility.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/ambiguouscontext.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirandinlinetemplate.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplate.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplateandrender.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplatesonly.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/eithertemplateorrender.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/explicitimplicittemplate.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline_unassociated.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/missingcontext.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/notemplateorrender.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/template.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatedirectory.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatefile.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatenotfound.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatereload.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/twoviewsusetemplate.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/unassociated.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/update.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/update_redirect.py
  U   grok/branches/gotcha-configuration-actions/src/grok/tests/view/view.py

-=-
Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/__init__.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/__init__.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/__init__.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1 +1,11 @@
 # this is a package
+
+from zope.configuration.config import ConfigurationMachine
+
+import grok as grokpkg
+
+def grok(module_name):
+    config = ConfigurationMachine()
+    grokpkg.grok(module_name, config=config)
+    config.execute_actions()
+    

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapter.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapter.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapter.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,5 +1,5 @@
 """
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapterdecorator.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapterdecorator.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/adapterdecorator.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,5 +1,5 @@
 """
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   >>>
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/alphabetical.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/alphabetical.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/alphabetical.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Grok does not depend on the alphabetical order:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = ZCave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontext.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontext.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontext.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Explicit class-level context in case of multiple models:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontextimported.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontextimported.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/classcontextimported.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Explicit class-level context for an imported model:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> painting = IPainting(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsmany.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsmany.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsmany.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Subclasses of grok.Adapter and grok.MultiAdapter must implement exactly one
 interface:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.adapter.implementsmany.Home'> is implementing

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnone.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnone.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnone.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Subclasses of grok.Adapter and grok.MultiAdapter must implement exactly one
 interface:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.adapter.implementsnone.Home'> must

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnonemulti.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnonemulti.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/implementsnonemulti.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Subclasses of grok.Adapter and grok.MultiAdapter must implement exactly one
 interface:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.adapter.implementsnonemulti.Home'> must

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Imported model and adapter won't be grokked:
 
   >>> import grok
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   >>> from grok.tests.adapter.adapter import IHome
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/importedmodel2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Grok error because import model doesn't count as context:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interface.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interface.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interface.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 You can also specify interfaces instead of classes with
 `grok.context` (class-level):
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interfacemodule.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interfacemodule.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/interfacemodule.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 You can also specify interfaces instead of classes with
 `grok.context` (module-level):
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontext.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontext.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontext.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Explicit module-level context in case of multiple models:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontextimported.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontextimported.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/modulecontextimported.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Explicit module-level context for an imported model:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> painting = IPainting(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadapter.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadapter.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadapter.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -3,7 +3,7 @@
 multiple arguments to grok.adapts, and supplying a matching
 __init__():
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> fireplace = Fireplace()

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadaptsnone.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadaptsnone.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiadaptsnone.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Subclasses of grok.MultiAdapter must declare what they adapt, using grok.adapts:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.adapter.multiadaptsnone.Home'> must specify

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiple.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiple.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/multiple.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Multiple models lead to ambiguity:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible contexts for

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/namedadapter.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/namedadapter.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/namedadapter.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 You can register a named adapter by using grok.name:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/nomodel.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/nomodel.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/nomodel.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 If no model can be found in the module, we get an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/oldstyleclass.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/oldstyleclass.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/oldstyleclass.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Old-style classes are also supported:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/order.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/order.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/adapter/order.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 If the model is defined after the adapter, it should still be grokked
 properly:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> cave = Cave()
   >>> home = IHome(cave)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/error/error.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/error/error.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/error/error.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -3,7 +3,7 @@
 We expect this grok to fail, and give 
 
   >>> try:
-  ...     grok.grok(__name__)
+  ...     grok.tests.grok(__name__)
   ... except grok.GrokError, error:
   ...     pass
   >>> error.component

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/event/subscriber.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/event/subscriber.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/event/subscriber.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 You can subscribe to events using the @grok.subscribe decorator:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   >>> manfred = Mammoth('Manfred')
   >>> grok.notify(grok.ObjectCreatedEvent(manfred))
   >>> mammoths

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,11 +2,9 @@
 A permission has to be defined first (using grok.Permission for example)
 before it can be used in grok.require().
 
-  >>> grok.grok(__name__)
-  Traceback (most recent call last):
-  GrokError: Undefined permission 'doesnt.exist' in <class
-  'grok.tests.security.missing_permission.MissingPermission'>. Use
-  grok.Permission first.
+    >>> grok.tests.grok(__name__)
+    ...
+    ConfigurationExecutionError: martian.error.GrokError: Undefined permission 'doesnt.exist' in <class 'grok.tests.security.missing_permission.MissingPermission'>. Use grok.Permission first.
 
 """
 

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 A permission has to be defined first (using grok.Permission for example)
 before it can be used in grok.require() in an JSON class.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: Undefined permission 'doesnt.exist' in <class
   'grok.tests.security.missing_permission_json.MissingPermission'>. Use

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_json2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 A permission has to be defined first (using grok.Permission for example)
 before it can be used in @grok.require().
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: Undefined permission 'doesnt.exist' in <class
   'grok.tests.security.missing_permission_json2.MissingPermission'>. Use

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_name.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_name.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_name.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 A role has to have a name to be defined.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   ...
   GrokError: A permission needs to have a dotted name for its id.

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 A permission has to be defined first (using grok.Permission for example)
 before it can be used in grok.require() in an XMLRPC class.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: Undefined permission 'doesnt.exist' in <class
   'grok.tests.security.missing_permission_xmlrpc.MissingPermission'>. Use

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 A permission has to be defined first (using grok.Permission for example)
 before it can be used in @grok.require().
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: Undefined permission 'doesnt.exist' in <class
   'grok.tests.security.missing_permission_xmlrpc2.MissingPermission'>. Use

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc3.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc3.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_permission_xmlrpc3.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -3,7 +3,7 @@
 before it can be used in grok.require() in an XMLRPC class. This is even the
 case for a default permission that is never used.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
    ...
   GrokError: Undefined permission 'doesnt.exist' in <class

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_role_name.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_role_name.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/missing_role_name.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 A role has to have a name to be defined.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: A role needs to have a dotted name for its id.
   Use grok.name to specify one.

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Multiple calls of grok.require in one class are not allowed.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: grok.require was called multiple times in <class 'grok.tests.security.multiple_require.MultipleView'>. It may only be set once for a class.

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_json.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_json.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_json.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Multiple calls of grok.require in one class are not allowed.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: grok.require was called multiple times in <class 'grok.tests.security.multiple_require_json.MultipleJSON'>. It may only be set once for a class.

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_xmlrpc.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_xmlrpc.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/multiple_require_xmlrpc.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Multiple calls of grok.require in one class are not allowed.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
      ...
   GrokError: grok.require was called multiple times in <class 'grok.tests.security.multiple_require_xmlrpc.MultipleXMLRPC'>. It may only be set once for a class.

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/security/view_decorator.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/security/view_decorator.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/security/view_decorator.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Using the @grok.require decorator in a view class is not allowed.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   GrokError: The @grok.require decorator is used for method 'render' in view <class 'grok.tests.security.view_decorator.BogusView'>. It may only be used for XML-RPC methods.
 

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Subclasses of grok.GlobalUtility that implement more than one interface must
 specify which interface to use for the registration:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.implementsmany.Club'> is implementing

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsmany2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Subclasses of grok.GlobalUtility that implement more than one interface must
 specify which interface to use for the registration:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.implementsmany2.Club'> is implementing

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Subclasses of grok.GlobalUtility must implement exactly one interface:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.implementsnone.Club'> must

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/implementsnone2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Subclasses of grok.GlobalUtility must implement exactly one interface:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.implementsnone2.Club'> must

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsmany.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsmany.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsmany.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -5,7 +5,7 @@
 In this test, the utility implements more than one interface, so it cannot be
 registered as a local utility.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.local_implementsmany.Fireplace'>

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -5,7 +5,7 @@
 In this test, the utility does not implement any interface, so it cannot be
 registered as a local utility.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: <class 'grok.tests.utility.local_implementsnone.Fireplace'>

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone2.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone2.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/local_implementsnone2.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,5 +1,5 @@
 """
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Cannot determine which interface to use for utility registration of

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_class.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_class.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_class.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 When you try to register multiple classes with the same (interface, name)
 combination multiple times using grok.local_utility, we expect an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Conflicting local utility registration

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_directive.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_directive.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/multiple_directive.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 When you call the grok.local_utility directive multiple times specifying
 the same (interface, name) combination, we expect an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Conflicting local utility registration

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/publicnoncontainer.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/publicnoncontainer.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/publicnoncontainer.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 You cannot use local_utility with 'public' set to True if the site class
 isn't a container:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Cannot set public to True with grok.local_utility as the site

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/utility/utility.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/utility/utility.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/utility/utility.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Global utilities can be created by subclassing grok.GlobalUtility:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   >>> from zope import component
 
   >>> normal_club = component.getUtility(IClub)

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/ambiguouscontext.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/ambiguouscontext.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/ambiguouscontext.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Templates with ambiguous context cannot be grokked:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible contexts for

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirandinlinetemplate.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirandinlinetemplate.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirandinlinetemplate.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 If multiple templates can be found, one in the module and one in the
 template directory, there is an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Conflicting templates found for name 'cavepainting' in module

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplate.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplate.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplate.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Templates can also be found in a directory with the same name as the module:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   
   >>> manfred = Mammoth()
   >>> from zope.publisher.browser import TestRequest

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplateandrender.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplateandrender.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplateandrender.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 A View may either have an associated template or a render-method. Here
 we check that this also works for templates in a template-directory:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible ways to render view

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplatesonly.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplatesonly.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/dirtemplatesonly.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -6,7 +6,7 @@
   >>> warnings.warn = warn
 
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
     From tests.py's showwarning():
     ... UserWarning: File 'invalid.txt' has an unrecognized extension in directory '...dirtemplatesonly_templates'...
     

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/eithertemplateorrender.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/eithertemplateorrender.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/eithertemplateorrender.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Only one, either a template, or render() can be specified:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible ways to render view

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/explicitimplicittemplate.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/explicitimplicittemplate.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/explicitimplicittemplate.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -3,7 +3,7 @@
 associated with a view while that view already refers to another
 template using grok.template.  Therefore there is an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible templates for view

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Templates can be specified in the same module as the view,
 using a variable named `viewname_pt`:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   
   >>> manfred = Mammoth()
   >>> from zope.publisher.browser import TestRequest

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline_unassociated.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline_unassociated.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/inline_unassociated.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Inline templates that are not associated with a view class will
 provoke an error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   ...
   GrokError: Found the following unassociated template(s) when grokking

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/missingcontext.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/missingcontext.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/missingcontext.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Views without a context cannot be grokked:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/notemplateorrender.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/notemplateorrender.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/notemplateorrender.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 Views either need an associated template or a ``render`` method:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: View <class 'grok.tests.view.notemplateorrender.CavePainting'>

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/template.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/template.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/template.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,6 +1,6 @@
 """
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
 View with an associated PageTemplate that is referred to using
 ``grok.template``:

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatedirectory.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatedirectory.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatedirectory.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 You can explicitly specify the template directory using grok.templatedir on module level:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> manfred = Mammoth()
   >>> from zope.publisher.browser import TestRequest

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatefile.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatefile.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatefile.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,6 +1,6 @@
 """
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
 View with an associated PageTemplate that is referred to using
 ``grok.template``:

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatenotfound.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatenotfound.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatenotfound.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 This should fail because ``grok.template`` points to a non-existing
 template:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
     ...
   GrokError: View <class 'grok.tests.view.templatenotfound.Painting'>

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatereload.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatereload.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/templatereload.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Filesystem-based templates, once grokked, can be changed.  The change
 will automatically be picked up, reloading Zope is not necessary.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   >>> from zope.component import getMultiAdapter
   >>> from zope.publisher.browser import TestRequest
   >>> request = TestRequest()

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/twoviewsusetemplate.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/twoviewsusetemplate.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/twoviewsusetemplate.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,7 +1,7 @@
 """
 A template can be used by multiple views at the same time:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> manfred = Mammoth()
   >>> from zope.publisher.browser import TestRequest

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/unassociated.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/unassociated.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/unassociated.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 Templates that are not associated with a view class will provoke an
 error:
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
   Traceback (most recent call last):
   ...
   GrokError: Found the following unassociated template(s) when grokking

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/update.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/update.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/update.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -3,7 +3,7 @@
 used e. g. to execute side effects or set up data for use in the
 template.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
 We need to set up a default ITraversable adapter so that TALES
 expressions can resolve paths:

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/update_redirect.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/update_redirect.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/update_redirect.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -2,7 +2,7 @@
 When a view's update() method redirects somewhere else, the template
 is not executed subsequently.
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
   >>> manfred = Mammoth()
   >>> from zope.publisher.browser import TestRequest

Modified: grok/branches/gotcha-configuration-actions/src/grok/tests/view/view.py
===================================================================
--- grok/branches/gotcha-configuration-actions/src/grok/tests/view/view.py	2007-10-09 11:19:19 UTC (rev 80735)
+++ grok/branches/gotcha-configuration-actions/src/grok/tests/view/view.py	2007-10-09 11:20:04 UTC (rev 80736)
@@ -1,6 +1,6 @@
 """
 
-  >>> grok.grok(__name__)
+  >>> grok.tests.grok(__name__)
 
 We should find the ``cavepainting`` view for a mammoth:
 



More information about the Checkins mailing list