[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - classifier.py:1.2
Shane Hathaway
shane@zope.com
Wed, 4 Jun 2003 11:59:14 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv28720
Modified Files:
classifier.py
Log Message:
Fixed a NameError on SerializationError and fixed the type of an exception
=== Products/Ape/lib/apelib/zope2/classifier.py 1.1 => 1.2 ===
--- Products/Ape/lib/apelib/zope2/classifier.py:1.1 Wed Apr 9 23:09:58 2003
+++ Products/Ape/lib/apelib/zope2/classifier.py Wed Jun 4 11:59:14 2003
@@ -22,7 +22,7 @@
from OFS.ObjectManager import ObjectManager
from apelib.core.interfaces import IClassifier
-from apelib.core.exceptions import DeserializationError
+from apelib.core.exceptions import SerializationError, DeserializationError
# guess_extension() is useful but it's unoptimized and sometimes
# chooses strange extensions. fixed_extensions does nothing other than
@@ -128,7 +128,7 @@
'No classification known for %s' % repr(keychain))
mapper_name = self.mt_to_mapper.get(mt)
if mapper_name is None:
- raise DeserializationError(
+ raise SerializationError(
'No mapper known for meta_type %s' % repr(mt))
klass = value.__class__
ci = '%s:%s' % (klass.__module__, klass.__name__)