--- a/web/views/cwsources.py Tue May 15 10:57:14 2012 +0200
+++ b/web/views/cwsources.py Tue May 15 14:43:30 2012 +0200
@@ -373,8 +373,9 @@
w(u'<label>%s</label>' % self._cw._(u'Message threshold'))
w(u'<select class="log_filter" onchange="filterLog(\'%s\', this.options[this.selectedIndex].value)">'
% self.view.domid)
- for level in ('Debug', 'Info', 'Warning', 'Error', 'Fatal'):
- w('<option value="%s">%s</option>' % (level, self._cw._(level)))
+ for level in ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL'):
+ w('<option value="%s">%s</option>' % (level.capitalize(),
+ self._cw._(level)))
w(u'</select>')
w(u'</fieldset></form>')
super(LogTableLayout, self).render_table(w, actions, paginate)
@@ -421,7 +422,9 @@
class URLRenderer(pyviews.PyValTableColRenderer):
def render_cell(self, w, rownum):
url = self.data[rownum][1]
- w(url and tags.a(url, href=url) or u' ')
+ if url and url.startswith('http'):
+ url = tags.a(url, href=url)
+ w(url or u' ')
class LineRenderer(pyviews.PyValTableColRenderer):
def render_cell(self, w, rownum):