You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2013/06/13 08:11:43 UTC

svn commit: r1492534 - /bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html

Author: rjollos
Date: Thu Jun 13 06:11:43 2013
New Revision: 1492534

URL: http://svn.apache.org/r1492534
Log:
Rs #548: Account for possibility that template timestamp argument could be a unicode string.

Modified:
    bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html

Modified: bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html?rev=1492534&r1=1492533&r2=1492534&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html (original)
+++ bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/templates/widget_grid.html Thu Jun 13 06:11:43 2013
@@ -103,17 +103,17 @@
                       </py:when>
   
                       <!--! generic fields -->
-                      <py:when test="col == 'time'" py:with="value = int(cell.value) if isinstance(cell.value, str) else cell.value">
+                      <py:when test="col == 'time'" py:with="value = int(cell.value) if isinstance(cell.value, basestring) else cell.value">
                         <td class="date" py:attrs="td_attrs">${cell.value != '' and format_time(value) or '--'}
                         </td>
                       </py:when>
 
-                      <py:when test="col in ('date', 'created', 'modified')" py:with="value = int(cell.value) if isinstance(cell.value, str) else cell.value">
+                      <py:when test="col in ('date', 'created', 'modified')" py:with="value = int(cell.value) if isinstance(cell.value, basestring) else cell.value">
                         <td class="date" py:attrs="td_attrs">${cell.value != '' and format_date(value) or '--'}
                         </td>
                       </py:when>
 
-                      <py:when test="col == 'datetime'" py:with="value = int(cell.value) if isinstance(cell.value, str) else cell.value">
+                      <py:when test="col == 'datetime'" py:with="value = int(cell.value) if isinstance(cell.value, basestring) else cell.value">
                         <td class="date" py:attrs="td_attrs">${cell.value != '' and format_datetime(value) or '--'}
                         </td>
                       </py:when>