[rhmessaging-commits] rhmessaging commits: r2372 - mgmt/trunk/cumin/python/wooly.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Sep 2 11:05:53 EDT 2008
Author: justi9
Date: 2008-09-02 11:05:53 -0400 (Tue, 02 Sep 2008)
New Revision: 2372
Modified:
mgmt/trunk/cumin/python/wooly/widgets.py
Log:
Escape string values of PropertySets.
Modified: mgmt/trunk/cumin/python/wooly/widgets.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/widgets.py 2008-09-02 14:41:20 UTC (rev 2371)
+++ mgmt/trunk/cumin/python/wooly/widgets.py 2008-09-02 15:05:53 UTC (rev 2372)
@@ -1,4 +1,5 @@
from math import ceil
+from xml.sax.saxutils import escape
from parameters import *
from resources import *
@@ -434,8 +435,13 @@
return prop[0]
def render_value(self, session, prop):
- return 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)
More information about the rhmessaging-commits
mailing list