[rhmessaging-commits] rhmessaging commits: r4348 - mgmt/newdata/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Mon Sep 27 11:27:39 EDT 2010
Author: justi9
Date: 2010-09-27 11:27:39 -0400 (Mon, 27 Sep 2010)
New Revision: 4348
Modified:
mgmt/newdata/mint/python/mint/update.py
Log:
Instead of producing an error, drop updates for classes not in the model
Modified: mgmt/newdata/mint/python/mint/update.py
===================================================================
--- mgmt/newdata/mint/python/mint/update.py 2010-09-27 15:14:39 UTC (rev 4347)
+++ mgmt/newdata/mint/python/mint/update.py 2010-09-27 15:27:39 UTC (rev 4348)
@@ -266,15 +266,14 @@
try:
pkg = self.model._packages_by_name[name]
except KeyError:
- raise PackageUnknown(name)
+ raise UpdateDropped()
name = class_key.getClassName()
try:
cls = pkg._classes_by_lowercase_name[name.lower()]
except KeyError:
- # XXX UpdateDropped instead?
- raise ClassUnknown(name)
+ raise UpdateDropped()
return cls
@@ -625,22 +624,6 @@
class UpdateDropped(Exception):
pass
-class UpdateException(Exception):
- def __init__(self, name):
- self.name = name
-
- def __str__(self):
- return "%s(%s)" % (self.__class__.__name__, self.name)
-
-class PackageUnknown(UpdateException):
- pass
-
-class ClassUnknown(UpdateException):
- pass
-
-class ObjectUnknown(UpdateException):
- pass
-
class MappingException(Exception):
pass
More information about the rhmessaging-commits
mailing list