Author: justi9
Date: 2009-01-19 09:55:41 -0500 (Mon, 19 Jan 2009)
New Revision: 3047
Modified:
mgmt/trunk/cumin/python/cumin/broker.py
Log:
Whitespace cleanup
Modified: mgmt/trunk/cumin/python/cumin/broker.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/broker.py 2009-01-15 20:38:16 UTC (rev 3046)
+++ mgmt/trunk/cumin/python/cumin/broker.py 2009-01-19 14:55:41 UTC (rev 3047)
@@ -50,7 +50,7 @@
def render_class(self, session):
return "unregister"
-
+
def process_submit(self, session):
ids = self.parent.ids.get(session)
self.parent.ids.clear(session)
@@ -157,10 +157,10 @@
self.queues_purge = QueueSetPurge(app, "queuespurge")
self.add_mode(self.queues_purge)
-
+
self.queues_remove = QueueSetRemove(app, "queuesremove")
self.add_mode(self.queues_remove)
-
+
self.queue_add = QueueAdd(app, "queueadd")
self.add_mode(self.queue_add)
@@ -172,13 +172,13 @@
self.exchanges_remove = ExchangeSetRemove(app, "exchangesremove")
self.add_mode(self.exchanges_remove)
-
+
self.bindings_remove = BindingSetRemove(app, "bindingsremove")
self.add_mode(self.bindings_remove)
-
+
self.link = PeerFrame(app, "link")
self.add_mode(self.link)
-
+
self.link_add = BrokerLinkAdd(app, "linkadd")
self.add_mode(self.link_add)
@@ -214,7 +214,7 @@
def get_default(self, session):
reg = self.widget.frame.get_object(session)
connected = False
-
+
try:
mbroker = self.app.model.data.mintBrokersByUrl[reg.url]
@@ -336,7 +336,7 @@
props.extend([(x.get_title(session),
x.value(session, reg.broker))
for x in cls.properties])
-
+
return props
class Actions(CuminActions):
@@ -350,7 +350,7 @@
acts.extend([(x.get_href(session, reg.broker),
x.get_title(session), x.get_enabled(session,
reg.broker))
for x in cls.actions if x.navigable])
-
+
return acts
class ModuleNotEnabled(Widget):
@@ -466,7 +466,7 @@
self.group_tmpl = Template(self, "group_html")
self.profile_tmpl = Template(self, "profile_html")
self.cluster_tmpl = Template(self, "cluster_html")
-
+
self.group = BrokerGroupParameter(app, "group")
self.add_parameter(self.group)
@@ -549,7 +549,7 @@
href = branch.marshal()
name = object and object.name or "Any"
-
+
class_ = param.get(session) is object and "selected"
return fmt_link(href, name, class_)
@@ -560,7 +560,7 @@
self.name_param = Parameter(app, "name_param");
self.add_parameter(self.name_param)
-
+
self.names = ListParameter(app, "name", self.name_param)
self.add_parameter(self.names)
@@ -592,7 +592,7 @@
self.more_button = self.MoreEntries(app, "more_button")
self.add_child(self.more_button)
-
+
self.more = self.More(app, "more")
self.add_parameter(self.more)
@@ -603,7 +603,7 @@
class More(Parameter):
def get_default(self, session):
return ""
-
+
def process_display(self, session):
if self.more.get(session):
self.fields.set(session, self.fields.get(session) + 3)
@@ -613,7 +613,7 @@
for i in range(self.fields.get(session)):
self.field_tmpl.render(writer, session, i)
-
+
return writer.to_string()
def render_field_name_name(self, session, index):
@@ -663,26 +663,26 @@
def render_group_selected_attr(self, session, index, group):
groups = self.groups.get(session)
- if len(groups) > index:
+ if len(groups) > index:
if groups[index] and group.id == groups[index].id:
return "selected=\"selected\""
def render_more_id(self, session):
return self.more_button.path
-
+
def render_more_name(self, session):
return self.more.path
class MoreEntries(FormButton):
def render_content(self, session):
return "More Entries"
-
+
def render_class(self, session):
return "more"
def render_type(self, session):
return "button"
-
+
class BrokerSetAdd(BrokerSetForm):
def process_cancel(self, session):
branch = session.branch()
@@ -697,7 +697,7 @@
names = self.names.get(session)
groups = self.groups.get(session)
fields = self.fields.get(session)
-
+
if self.validate(session, addrs, names, groups):
for i in range(0, fields):
try:
@@ -776,7 +776,7 @@
def get_args(self, session):
return self.frame.get_args(session)
-
+
def render_title(self, session, reg):
return "Edit Broker '%s'" % reg.name
@@ -805,7 +805,7 @@
reg.removeBrokerGroup(group)
reg.syncUpdate()
-
+
self.process_cancel(session, reg)
def process_display(self, session, reg):