[gen] Removed obsolete code; a Page instance that does not have sub-pages does not show the portlet.

This commit is contained in:
Gaetan Delannay 2013-03-08 16:16:25 +01:00
parent b717a001d4
commit 46f5b8e464
2 changed files with 5 additions and 5 deletions

View file

@ -903,11 +903,6 @@ class ToolMixin(BaseMixin):
res.append(row)
return res
def truncate(self, value, numberOfChars):
'''Truncates string p_value to p_numberOfChars.'''
if len(value) > numberOfChars: return value[:numberOfChars] + '...'
return value
# --------------------------------------------------------------------------
# Authentication-related methods
# --------------------------------------------------------------------------