From e0328e84d4b0e5b45aa20c564d52d3d17ab312ec Mon Sep 17 00:00:00 2001
From: legac <renaud.legac@free.fr>
Date: Mon, 11 Nov 2013 22:14:16 +0100
Subject: [PATCH] ExtJS 4.2: Add the binding for Ext.form.FieldContainer and
 remove CompositeField.

---
 modules/plugin_dbui/__init__.py |  3 +--
 modules/plugin_dbui/extjs.py    | 20 ++++++--------------
 2 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/modules/plugin_dbui/__init__.py b/modules/plugin_dbui/__init__.py
index 8eb2689e..375e3625 100755
--- a/modules/plugin_dbui/__init__.py
+++ b/modules/plugin_dbui/__init__.py
@@ -19,10 +19,10 @@ from directsvc import DBUI, DirectSvc
 from extjs import (ArrayStore,
                    CheckBox,
                    ComboBox,
-                   CompositeField,
                    DateField,
                    DirectStore,
                    Field,
+                   FieldContainer,
                    FieldSet,
                    FormPanel,
                    GridColumn,
@@ -37,7 +37,6 @@ from extjs import (ArrayStore,
                    NumberField,
                    Panel,
                    PanelWithUrlSelector,
-                   Spacer,
                    Store,
                    TabPanel,
                    TextArea,
diff --git a/modules/plugin_dbui/extjs.py b/modules/plugin_dbui/extjs.py
index 44697170..c5771a40 100644
--- a/modules/plugin_dbui/extjs.py
+++ b/modules/plugin_dbui/extjs.py
@@ -86,11 +86,6 @@ class ComboBox(Base):
     xtype = 'xcombobox'
 
 
-class CompositeField(Base):
-    """Configurator for C{Ext.form.CompositeField}."""
-    xtype = 'compositefield'
-
-
 class DateField(Base):
     """Configurator for C{Ext.form.DateField}."""
     xtype = 'datefield'
@@ -111,18 +106,15 @@ class Field(Base):
     xtype = 'field'
 
 
-class FieldSet(Base):
-    """Configurator for C{Ext.form.FieldSet}.
+class FieldContainer(Base):
+    """Configurator for C{Ext.form.FieldContainer}."""
+    xtype = 'fieldcontainer'
 
-    @note: By default, the layout for children Field is set to C{anchor 99%}.
-    It can be overwritten using the keywords defaults.
-       
-    """
+
+class FieldSet(Base):
+    """Configurator for C{Ext.form.FieldSet}."""
     xtype = 'fieldset'
     
-    def __init__(self, **kwargs):
-        Base.__init__(self, **kwargs)
-
 
 class FormPanel(Base):
     """Configurator for C{App.form.FormPanel}."""
-- 
GitLab