Author: croberts
Date: 2013-06-21 21:36:26 +0000 (Fri, 21 Jun 2013)
New Revision: 5766
Modified:
trunk/cumin/python/cumin/gridhadoop/hadoop.py
Log:
Making cumin a little more robust when we get nothing back for an http value (this can
happen when the node is still starting up, or when things are really hosed).
Modified: trunk/cumin/python/cumin/gridhadoop/hadoop.py
===================================================================
--- trunk/cumin/python/cumin/gridhadoop/hadoop.py 2013-06-21 14:35:16 UTC (rev 5765)
+++ trunk/cumin/python/cumin/gridhadoop/hadoop.py 2013-06-21 21:36:26 UTC (rev 5766)
@@ -340,8 +340,18 @@
class HadoopHttpColumn(HadoopObjectLinkColumn):
def render_cell_href(self, session, record):
- link = self.field.get_content(session, record)
+ if "://" not in self.field.get_content(session, record):
+ link = ""
+ else:
+ link = self.field.get_content(session, record)
return link
+
+ def render_cell_content(self, session, record):
+ if "://" not in self.field.get_content(session, record):
+ value = ""
+ else:
+ value = self.field.get_content(session, record)
+ return value
class HadoopExternalAddForm(HadoopNodeCreateForm):
def __init__(self, app, name, task, cls):
Show replies by date