# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1248450641 -7200
# Node ID ef8b86f6ca5aa0a444642c683271384de57c4daf
# Parent  9806571ea7907a6cdde1c760dbcbb1b4609980e4# Parent  95eada71bb230945647f465ef1252d01e28c06a4
merge

diff -r 9806571ea790 -r ef8b86f6ca5a web/data/cubicweb.edition.js
--- 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
diff -r 9806571ea790 -r ef8b86f6ca5a web/views/__init__.py
--- 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'