merge
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Jul 2009 17:50:41 +0200
changeset 2494 ef8b86f6ca5a
parent 2493 9806571ea790 (current diff)
parent 2491 95eada71bb23 (diff)
child 2495 abcbadcc110a
merge
--- a/web/data/cubicweb.edition.js	Fri Jul 24 17:50:31 2009 +0200
+++ b/web/data/cubicweb.edition.js	Fri Jul 24 17:50:41 2009 +0200
@@ -477,7 +477,7 @@
     d.addCallback(function (result, req) {
         handleFormValidationResponse(divid+'-form', noop, noop, result);
 	if (reload) {
-	    document.location.href = result[1];
+	    document.location.href = result[1].split('?')[0];
 	} else {
 	    var fieldview = getNode('value-' + divid);
 	    // XXX using innerHTML is very fragile and won't work if
--- a/web/views/__init__.py	Fri Jul 24 17:50:31 2009 +0200
+++ b/web/views/__init__.py	Fri Jul 24 17:50:41 2009 +0200
@@ -81,7 +81,7 @@
             if req.search_state[0] == 'normal':
                 return 'primary'
             return 'outofcontext-search'
-        if len(rset.columns_type(0)) == 1:
+        if len(rset.column_types(0)) == 1:
             return 'adaptedlist'
         return 'list'
     return 'table'