0001"""Deprecated: This module has moved to pylons.controllers.util"""
0002import warnings
0003
0004import pylons
0005import pylons.controllers.util
0006import pylons.legacy
0007from pylons.util import deprecated, func_move
0008
0009__all__ = ['abort', 'etag_cache', 'log', 'redirect_to']
0010
0011warnings.warn('The pylons.helper module has moved to pylons.controllers.util; '
0012 'please update your imports.', DeprecationWarning, 2)
0013
0014def log(msg):
0015 """Deprecated: Use the logging module instead.
0016
0017 Log a message to the output log.
0018 """
0019 warnings.warn(pylons.legacy.log_warning, DeprecationWarning, 2)
0020 pylons.request.environ['wsgi.errors'].write('=> %s\n' % str(msg))
0021
0022abort = deprecated(pylons.controllers.util.abort,
0023 func_move('abort', 'pylons.controllers.util'))
0024etag_cache = deprecated(pylons.controllers.util.etag_cache,
0025 func_move('etag_cache', 'pylons.controllers.util'))
0026redirect_to = deprecated(pylons.controllers.util.redirect_to,
0027 func_move('redirect_to', 'pylons.controllers.util'))