merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Feb 2010 07:08:11 +0100
branchstable
changeset 4707 d8206e0d1838
parent 4706 6035e96b64dd (current diff)
parent 4699 8757fca2c308 (diff)
child 4708 2bd3d03721f3
merge
--- a/server/hook.py	Fri Feb 26 07:07:28 2010 +0100
+++ b/server/hook.py	Fri Feb 26 07:08:11 2010 +0100
@@ -44,7 +44,7 @@
 from logilab.common.logging_ext import set_log_methods
 
 from cubicweb.cwvreg import CWRegistry, VRegistry
-from cubicweb.selectors import (objectify_selector, lltrace, match_search_state,
+from cubicweb.selectors import (objectify_selector, lltrace, ExpectedValueSelector,
                                 implements)
 from cubicweb.appobject import AppObject
 
@@ -134,7 +134,7 @@
         return iter(chain(*self.iterators))
 
 
-class match_rtype(match_search_state):
+class match_rtype(ExpectedValueSelector):
     """accept if parameters specified as initializer arguments are specified
     in named arguments given to the selector
 
@@ -159,7 +159,7 @@
         return 1
 
 
-class match_rtype_sets(match_search_state):
+class match_rtype_sets(ExpectedValueSelector):
     """accept if parameters specified as initializer arguments are specified
     in named arguments given to the selector
     """
--- a/web/uicfg.py	Fri Feb 26 07:07:28 2010 +0100
+++ b/web/uicfg.py	Fri Feb 26 07:08:11 2010 +0100
@@ -251,7 +251,7 @@
     _allowed_form_types = ('main', 'inlined', 'muledit')
     _allowed_values = {'main': ('attributes', 'inlined', 'relations',
                                 'metadata', 'hidden'),
-                       'inlined': ('attributes', 'hidden'),
+                       'inlined': ('attributes', 'inlined', 'hidden'),
                        'muledit': ('attributes', 'hidden'),
                        }
 
--- a/web/views/forms.py	Fri Feb 26 07:07:28 2010 +0100
+++ b/web/views/forms.py	Fri Feb 26 07:08:11 2010 +0100
@@ -112,7 +112,7 @@
     def default_renderer(self):
         return self._cw.vreg['formrenderers'].select(
             self.form_renderer_id, self._cw,
-            rset=self.cw_rset, row=self.cw_row, col=self.cw_col)
+            rset=self.cw_rset, row=self.cw_row, col=self.cw_col or 0)
 
     formvalues = None
     def build_context(self, formvalues=None):