Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/templateFilters.py

Issue 8997062: Fixed: Mailing report digests fails if report.site is None (Closed)
Patch Set: Created Dec. 12, 2012, 7:01 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/templateFilters.py
===================================================================
--- a/sitescripts/templateFilters.py
+++ b/sitescripts/templateFilters.py
@@ -135,6 +135,7 @@
return unicode(value).rjust(width)
def ltruncate(value, length=255, end='...'):
+ value = unicode(value)
if len(value) <= length:
return value
return end + value[len(value) - length:len(value)]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld