1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2009 Red Hat, Inc.
# Copyright (C) 2008 Ricky Zhou
# This file is part of python-fedora
#
# python-fedora 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.
#
# python-fedora 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 python-fedora; if not, see <http://www.gnu.org/licenses/>
#
'''
Miscellaneous functions of use on a TurboGears Server. This interface is
*deprecated*
.. versionchanged:: 0.3.17
Deprecated
.. moduleauthor:: Toshio Kuratomi <tkuratom@redhat.com>
.. moduleauthor:: Ricky Zhou <ricky@fedoraproject.org>
'''
# Pylint Messages
# :W0401: This file is for backwards compatibility. It has been renamed to
# tg1utils. We use a wildcard import just to import the names for functions
# into this namespace.
# :W0614: Ditto.
from fedora.tg.tg1utils import * # pylint:disable-msg=W0614,W0401
import warnings
warnings.warn('fedora.tg.util is deprecated. Switch to one of these '
'instead: TG1 apps: fedora.tg.utils TG2 apps: fedora.tg2.utils.'
' This file will disappear in 0.4',
DeprecationWarning, stacklevel=2)
__all__ = ('add_custom_stdvars', 'enable_csrf', 'fedora_template',
'jsonify_validation_errors', 'json_or_redirect', 'request_format',
'tg_url', 'url')
|