Updated messages
authorThierry Florac <tflorac@ulthar.net>
Fri, 18 Jan 2019 10:22:33 +0100
changeset 41 9bbb78a1efa9
parent 40 903c129e4572
child 42 512b92eeaa79
Updated messages
src/pyams_viewlet/viewlet.py
--- a/src/pyams_viewlet/viewlet.py	Fri Dec 28 10:53:22 2018 +0100
+++ b/src/pyams_viewlet/viewlet.py	Fri Jan 18 10:22:33 2019 +0100
@@ -86,7 +86,7 @@
 
     def __init__(self, **settings):
         if not settings.get('name'):
-            raise ConfigurationError("You must provide a name for a Viewlet")
+            raise ConfigurationError("You must provide a name for a content provider")
         if 'for_' in settings:
             if settings.get('context') is None:
                 settings['context'] = settings['for_']
@@ -172,7 +172,7 @@
 
     def __init__(self, **settings):
         if not settings.get('name'):
-            raise ConfigurationError("You must provide a name for a Viewlet")
+            raise ConfigurationError("You must provide a name for a viewlet")
         if 'for_' in settings:
             if settings.get('context') is None:
                 settings['context'] = settings['for_']