[rhmessaging-commits] rhmessaging commits: r1836 - mgmt/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Thu Apr 3 17:11:41 EDT 2008
Author: justi9
Date: 2008-04-03 17:11:41 -0400 (Thu, 03 Apr 2008)
New Revision: 1836
Modified:
mgmt/cumin/python/cumin/model.py
Log:
Make xml method args consistent
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-04-03 20:19:20 UTC (rev 1835)
+++ mgmt/cumin/python/cumin/model.py 2008-04-03 21:11:41 UTC (rev 1836)
@@ -312,10 +312,10 @@
def get_object_name(self, object):
return object.name
- def write_event_xml(self, object, writer):
+ def write_event_xml(self, writer, object):
writer.write("<events errors=\"%i\" warnings=\"%i\"/>" % (0, 0))
- def write_stat_xml(self, object, writer):
+ def write_stat_xml(self, writer, object):
for stat in self.stats:
stat.write_xml(writer, object)
@@ -323,8 +323,8 @@
writer.write("<%s id=\"%i\" name=\"%s\">" % \
(self.name, object.id, self.get_object_name(object)))
- self.write_event_xml(object, writer)
- self.write_stat_xml(object, writer)
+ self.write_event_xml(writer, object)
+ self.write_stat_xml(writer, object)
writer.write("</%s>" % self.name)
More information about the rhmessaging-commits
mailing list