[Checkins] SVN: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/ Directive error messages are slightly different now.

Philipp von Weitershausen philikon at philikon.de
Sat May 3 07:54:05 EDT 2008


Log message for revision 86194:
  Directive error messages are slightly different now.

Changed:
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/adapter/classorinterface.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/ambiguouscontext.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/missingcontext.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/namemultiple.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/nameunicode.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/xmlrpc/nocontext.py
  U   grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/zcml/directiveerror.py

-=-
Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/adapter/classorinterface.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/adapter/classorinterface.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/adapter/classorinterface.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -5,22 +5,22 @@
   >>> function_context()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass classes or interfaces to grok.context.
+  GrokImportError: The 'context' directive can only be called with a class or an interface.
 
   >>> string_context()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass classes or interfaces to grok.context.
+  GrokImportError: The 'context' directive can only be called with a class or an interface.
 
   >>> module_context()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass classes or interfaces to grok.context.
+  GrokImportError: The 'context' directive can only be called with a class or an interface.
 
   >>> instance_context()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass classes or interfaces to grok.context.
+  GrokImportError: The 'context' directive can only be called with a class or an interface.
 
 """
 import grok

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/ambiguouscontext.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/ambiguouscontext.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/ambiguouscontext.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -5,7 +5,8 @@
   Traceback (most recent call last):
     ...
   GrokError: Multiple possible contexts for
-  <class 'grok.tests.view.ambiguouscontext.Club'>, please use grok.context.
+  <class 'grok.tests.view.ambiguouscontext.Club'>, please use the
+  'context' directive.
 
 """
 

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/missingcontext.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/missingcontext.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/missingcontext.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -5,7 +5,8 @@
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for
-  <class 'grok.tests.view.missingcontext.Club'>, please use grok.context.
+  <class 'grok.tests.view.missingcontext.Club'>, please use the
+  'context' directive.
 
 """
 

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/namemultiple.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/namemultiple.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/namemultiple.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -4,6 +4,6 @@
   >>> import grok.tests.view.namemultiple_fixture
   Traceback (most recent call last):
     ...
-  GrokImportError: grok.name can only be called once per class.
+  GrokImportError: The 'name' directive can only be called once per class.
 
 """

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/nameunicode.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/nameunicode.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/view/nameunicode.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -6,11 +6,14 @@
   >>> pass_encodedstring()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass unicode or ASCII to grok.name.
+  GrokImportError: The 'name' directive can only be called with
+  unicode or ASCII.
+
   >>> pass_object()
   Traceback (most recent call last):
     ...
-  GrokImportError: You can only pass unicode or ASCII to grok.name.
+  GrokImportError: The 'name' directive can only be called with
+  unicode or ASCII.
 
 """
 import grok

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/xmlrpc/nocontext.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/xmlrpc/nocontext.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/xmlrpc/nocontext.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -7,7 +7,8 @@
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for
-  <class 'grok.tests.xmlrpc.nocontext.HomeRPC'>, please use grok.context.
+  <class 'grok.tests.xmlrpc.nocontext.HomeRPC'>, please use the
+  'context' directive.
 
 """
 import grok

Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/zcml/directiveerror.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/zcml/directiveerror.py	2008-05-03 11:53:43 UTC (rev 86193)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/tests/zcml/directiveerror.py	2008-05-03 11:54:05 UTC (rev 86194)
@@ -15,7 +15,7 @@
   Traceback (most recent call last):
     ...
   ZopeXMLConfigurationError: File "<string>", line 6.4-6.57
-      GrokError: No module-level context for <class 'grok.tests.zcml.directiveerror.CavePainting'>, please use grok.context.
+      GrokError: No module-level context for <class 'grok.tests.zcml.directiveerror.CavePainting'>, please use the 'context' directive.
 
 """
 import grok



More information about the Checkins mailing list