Author: eallen
Date: 2008-09-03 15:49:09 -0400 (Wed, 03 Sep 2008)
New Revision: 2396
Modified:
mgmt/trunk/cumin/python/wooly/widgets.py
Log:
Revert to Justin's handling of property values.
Modified: mgmt/trunk/cumin/python/wooly/widgets.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/widgets.py 2008-09-03 19:17:41 UTC (rev 2395)
+++ mgmt/trunk/cumin/python/wooly/widgets.py 2008-09-03 19:49:09 UTC (rev 2396)
@@ -416,11 +416,13 @@
return escape_amp(prop[0])
def render_value(self, session, prop):
- # we can't escape all entities here since
- # values that contained html tags would get
- # displayed improperly
- return escape_amp(prop[1])
+ value = prop[1]
+ if type(value) is str:
+ value = escape(value)
+
+ return value
+
class ActionSet(RenderingItemSet):
def __init__(self, app, name, item_renderer=None):
super(ActionSet, self).__init__(app, name, item_renderer)
Show replies by date