[Zope-CVS] CVS: Products/Ape/lib/apelib/core - mapper.py:1.6
Shane Hathaway
shane at zope.com
Thu Mar 11 00:46:17 EST 2004
Update of /cvs-repository/Products/Ape/lib/apelib/core
In directory cvs.zope.org:/tmp/cvs-serv13299
Modified Files:
mapper.py
Log Message:
Renamed variables named msg or message to something else. I am considering renaming events to messages.
=== Products/Ape/lib/apelib/core/mapper.py 1.5 => 1.6 ===
--- Products/Ape/lib/apelib/core/mapper.py:1.5 Mon Feb 2 10:07:18 2004
+++ Products/Ape/lib/apelib/core/mapper.py Thu Mar 11 00:46:16 2004
@@ -57,26 +57,26 @@
# Try to show a descriptive error
ss = s.schema
gs = g.schema
- msg = None
+ text = None
if isinstance(ss, DictType) and isinstance(gs, DictType):
for key in ss.keys():
if not gs.has_key(key):
- msg = 'No gateway provided for serializer "%s"' % key
+ text = 'No gateway provided for serializer "%s"' % key
break
elif ss[key] != gs[key]:
- msg = 'Mismatch on name "%s". %s != %s' % (
+ text = 'Mismatch on name "%s". %s != %s' % (
key, ss[key], gs[key])
break
- if msg is None:
+ if text is None:
for key in gs.keys():
if not ss.has_key(key):
- msg = ('No serializer provided for gateway "%s"'
+ text = ('No serializer provided for gateway "%s"'
% key)
break
- if msg is None:
- msg = '%s != %s' % (ss, gs)
+ if text is None:
+ text = '%s != %s' % (ss, gs)
raise ConfigurationError(
- 'Mapper %s: Mismatched schemas. %s' % (my_name, msg))
+ 'Mapper %s: Mismatched schemas. %s' % (my_name, text))
class MapperConfiguration:
More information about the Zope-CVS
mailing list