Changed widget CSS class attribute
authorThierry Florac <thierry.florac@onf.fr>
Tue, 15 Nov 2016 09:44:46 +0100
changeset 24 c70908550e8f
parent 23 06e3617fe77d
child 25 296bbb469ca4
Changed widget CSS class attribute
src/pyams_alchemy/zmi/engine.py
--- a/src/pyams_alchemy/zmi/engine.py	Tue Nov 15 09:43:36 2016 +0100
+++ b/src/pyams_alchemy/zmi/engine.py	Tue Nov 15 09:44:46 2016 +0100
@@ -180,7 +180,8 @@
 
     def updateWidgets(self, prefix=None):
         super(AlchemyEngineTestForm, self).updateWidgets(prefix)
-        self.widgets['query'].label_css_class = 'textarea'
+        if 'query' in self.widgets:
+            self.widgets['query'].widget_css_class = 'textarea'
 
     def updateActions(self):
         super(AlchemyEngineTestForm, self).updateActions()