[Checkins] SVN: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py remove duplicate code

Laurent Mignon Laurent.Mignon at softwareag.com
Fri Feb 27 06:00:20 EST 2009


Log message for revision 97344:
  remove duplicate code

Changed:
  U   z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py

-=-
Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-02-27 10:54:46 UTC (rev 97343)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-02-27 11:00:20 UTC (rev 97344)
@@ -305,14 +305,7 @@
     if factory is not None:
         component = factory(widget.context, widget.request,
                 widget.form, widget, widget.field)
-    #if not provided try to get one from the registry
     if component is None:
-        component = zope.component.queryMultiAdapter(
-            (widget.context, widget.request,
-                widget.form, widget, widget.field),
-            interfaces.IExtJSComponent)
-    #fallback to a simple adapter
-    if component is None:
         component = interfaces.IExtJSComponent(widget)
     return component.getConfig()
 



More information about the Checkins mailing list