devtools/dataimport.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 11 Oct 2011 16:01:44 +0200
branchstable
changeset 7939 e107204d3b27
parent 6491 ee9a10b6620e
permissions -rw-r--r--
Add a hidden input:submit field in facets form (closes #1988784) <Enter> is supposed to submit the form only if there is a single input:text field. However most browsers will submit the form on <Enter> anyway if there is an input:submit field. see: http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2 Firefox 7.0.1 does not submit form on <Enter> if there is more than a input:text field and not input:submit but does it if there is an input:submit. IE 6 or Firefox 2 behave the same way.

# pylint: disable=W0614,W0401
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
#
# CubicWeb is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
from warnings import warn
warn('moved to cubicweb.dataimport', DeprecationWarning, stacklevel=2)
from cubicweb.dataimport import *