[Zope3-checkins]
SVN: Zope3/branches/roger-contentprovider/src/zope/contentprovider/
Fix error message strings
Roger Ineichen
roger at projekt01.ch
Fri Oct 7 05:48:18 EDT 2005
Log message for revision 38855:
Fix error message strings
Changed:
U Zope3/branches/roger-contentprovider/src/zope/contentprovider/README.txt
U Zope3/branches/roger-contentprovider/src/zope/contentprovider/tales.py
-=-
Modified: Zope3/branches/roger-contentprovider/src/zope/contentprovider/README.txt
===================================================================
--- Zope3/branches/roger-contentprovider/src/zope/contentprovider/README.txt 2005-10-07 09:45:02 UTC (rev 38854)
+++ Zope3/branches/roger-contentprovider/src/zope/contentprovider/README.txt 2005-10-07 09:48:17 UTC (rev 38855)
@@ -466,7 +466,7 @@
>>> defaultManager.__getitem__('unauthorized')
Traceback (most recent call last):
...
- Unauthorized: You are not authorized to access the viewlet
+ Unauthorized: You are not authorized to access the provider
called `unauthorized`.
When looking for a particular viewlet, you also get an exception, if none is
@@ -475,7 +475,7 @@
>>> defaultManager.__getitem__('unknown')
Traceback (most recent call last):
...
- ComponentLookupError: 'No viewlet with name `unknown` found.'
+ ComponentLookupError: 'No provider with name `unknown` found.'
An Alternative Content Provider Manager
Modified: Zope3/branches/roger-contentprovider/src/zope/contentprovider/tales.py
===================================================================
--- Zope3/branches/roger-contentprovider/src/zope/contentprovider/tales.py 2005-10-07 09:45:02 UTC (rev 38854)
+++ Zope3/branches/roger-contentprovider/src/zope/contentprovider/tales.py 2005-10-07 09:48:17 UTC (rev 38855)
@@ -33,7 +33,7 @@
region = zope.component.queryUtility(interfaces.IRegion, name=str)
if region is None:
raise interfaces.ViewletRegionLookupError(
- 'Viewlet region interface not found.', str)
+ 'Provider region interface not found.', str)
return region
@@ -90,7 +90,7 @@
def __init__(self, name, expr, engine):
if not '/' in expr:
- raise KeyError('Use `iface/viewletname` for defining the viewlet.')
+ raise KeyError('Use `iface/key` for defining the provider.')
parts = expr.split('/')
if len(parts) > 2:
More information about the Zope3-Checkins
mailing list