[Checkins] SVN: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/ The error message of the new directives is slightly different.

Philipp von Weitershausen philikon at philikon.de
Fri May 2 18:21:07 EDT 2008


Log message for revision 86142:
  The error message of the new directives is slightly different.

Changed:
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/classcontextmultiple.py
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/functioncontext.py
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/importedmodel2.py
  U   grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/modulecontextmultiple.py

-=-
Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/classcontextmultiple.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/classcontextmultiple.py	2008-05-02 22:02:36 UTC (rev 86141)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/classcontextmultiple.py	2008-05-02 22:21:06 UTC (rev 86142)
@@ -4,7 +4,8 @@
   >>> import grokcore.component.tests.adapter.classcontextmultiple_fixture
   Traceback (most recent call last):
     ...
-  GrokImportError: grok.context can only be called once per class or module.
+  GrokImportError: The 'context' directive can only be called once per
+  class or module.
 
 """
 

Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/functioncontext.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/functioncontext.py	2008-05-02 22:02:36 UTC (rev 86141)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/functioncontext.py	2008-05-02 22:21:06 UTC (rev 86142)
@@ -4,14 +4,16 @@
   >>> func()
   Traceback (most recent call last):
     ...
-  GrokImportError: grok.context can only be used on class or module level.
+  GrokImportError: The 'context' directive can only be used on class or
+  module level.
 
 You can't call grok.context from a method either:
 
   >>> SomeClass().meth()
   Traceback (most recent call last):
     ...
-  GrokImportError: grok.context can only be used on class or module level.
+  GrokImportError: The 'context' directive can only be used on class or
+  module level.
 
 """
 import grokcore.component as grok

Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/importedmodel2.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/importedmodel2.py	2008-05-02 22:02:36 UTC (rev 86141)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/importedmodel2.py	2008-05-02 22:21:06 UTC (rev 86142)
@@ -5,7 +5,8 @@
   Traceback (most recent call last):
     ...
   GrokError: No module-level context for
-  <class 'grokcore.component.tests.adapter.importedmodel2.Painting'>, please use grok.context.
+  <class 'grokcore.component.tests.adapter.importedmodel2.Painting'>,
+  please use the 'context' directive.
 
 """
 import grokcore.component as grok

Modified: grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/modulecontextmultiple.py
===================================================================
--- grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/modulecontextmultiple.py	2008-05-02 22:02:36 UTC (rev 86141)
+++ grokcore.component/branches/jw-philipp-using-ndir-directives/src/grokcore/component/tests/adapter/modulecontextmultiple.py	2008-05-02 22:21:06 UTC (rev 86142)
@@ -4,6 +4,7 @@
   >>> import grokcore.component.tests.adapter.modulecontextmultiple_fixture
   Traceback (most recent call last):
     ...
-  GrokImportError: grok.context can only be called once per class or module.
+  GrokImportError: The 'context' directive can only be called once per
+  class or module.
 
 """



More information about the Checkins mailing list