cubicweb_sherpa/site_cubicweb.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Feb 2017 13:57:09 +0100
changeset 179 35d98fb943a8
parent 150 555661aebe9a
permissions -rw-r--r--
Drop breadcrumbs at once This is an attempt to make UI lighter and clearer. This makes sense once top-level links works properly (high-lighting, at least). While the parent entity information misses sometimes, it's not the case for the most proeminent cases of this application: archive transfer / units have a tree indicating the context of the viewed element, and authority record don't propose navigation to sub-objects. The only remaning thing is for a concept, but those are still 2nd class citizen in sherpa, so I think we can move that way.

# copyright 2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# This program 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 General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

from logilab.common.decorators import monkeypatch

from cubicweb.web import request


@monkeypatch(request._CubicWebRequestBase)
def negotiated_language(self):
    return 'fr'