[rhmessaging-commits] rhmessaging commits: r1741 - mgmt/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Fri Feb 29 10:51:45 EST 2008
Author: justi9
Date: 2008-02-29 10:51:44 -0500 (Fri, 29 Feb 2008)
New Revision: 1741
Modified:
mgmt/cumin/python/cumin/demo.py
Log:
Change model operations to reflect our new use of lazy updates
Modified: mgmt/cumin/python/cumin/demo.py
===================================================================
--- mgmt/cumin/python/cumin/demo.py 2008-02-29 15:25:05 UTC (rev 1740)
+++ mgmt/cumin/python/cumin/demo.py 2008-02-29 15:51:44 UTC (rev 1741)
@@ -16,15 +16,13 @@
groups = dict()
for name in ("West Coast", "East Coast", "Marketing", "Sales"):
- group = BrokerGroup()
- group.name = name
+ group = BrokerGroup(name=name)
groups[name] = group
profiles = list()
for name in ("4S Xserve", "2S ProLiant"):
- profile = BrokerProfile()
- profile.name = name
+ profile = BrokerProfile(name=name)
profiles.append(profile)
#self.load_props(profile)
@@ -32,8 +30,7 @@
clusters = list()
for cluster_count in range(3):
- cluster = BrokerCluster()
- cluster.name = fmt("cluster", cluster_count)
+ cluster = BrokerCluster(name=fmt("cluster", cluster_count))
clusters.append(cluster)
def load_props(self, obj):
More information about the rhmessaging-commits
mailing list