[rhmessaging-commits] rhmessaging commits: r3876 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Mar 23 12:42:19 EDT 2010


Author: eallen
Date: 2010-03-23 12:42:18 -0400 (Tue, 23 Mar 2010)
New Revision: 3876

Modified:
   mgmt/trunk/wooly/python/wooly/forms.py
   mgmt/trunk/wooly/python/wooly/forms.strings
Log:
Added id to form fields
Cleaned up form field class

Modified: mgmt/trunk/wooly/python/wooly/forms.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/forms.py	2010-03-23 14:18:50 UTC (rev 3875)
+++ mgmt/trunk/wooly/python/wooly/forms.py	2010-03-23 16:42:18 UTC (rev 3876)
@@ -321,8 +321,6 @@
     def __init__(self, app, name):
         super(FormField, self).__init__(app, name)
 
-        self.css_class = "field"
-
         self.form = None
 
         self.required = False
@@ -350,10 +348,6 @@
     def render_help(self, session, *args):
         return self.help
 
-    # XXX hmmm
-    def render_form_field_class(self, session, *args):
-        return self.css_class
-
 class FormFieldSet(Widget):
     def __init__(self, app, name):
         super(FormFieldSet, self).__init__(app, name)

Modified: mgmt/trunk/wooly/python/wooly/forms.strings
===================================================================
--- mgmt/trunk/wooly/python/wooly/forms.strings	2010-03-23 14:18:50 UTC (rev 3875)
+++ mgmt/trunk/wooly/python/wooly/forms.strings	2010-03-23 16:42:18 UTC (rev 3876)
@@ -149,7 +149,7 @@
 <option value="{item_value}" {item_selected_attr}>{item_content}</option>
 
 [FormField.html]
-<tr>
+<tr id="{id}">
   <th>
     <div class="title">{title}{required}</div>
     <div class="help">{help}</div>



More information about the rhmessaging-commits mailing list