Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

root/branches/cherrypy-2.x/cherrypy/lib/filter/__init__.py

Revision 930 (checked in by rdelon, 3 years ago)

Fixed #440

  • Property svn:eol-style set to native
Line 
1 import warnings
2 warnings.warn("cherrypy.lib.filter has been superseded by cherrypy.filters and will be removed in CP 2.3", DeprecationWarning, stacklevel = 2)
3
4 from cherrypy.filters import *
5
6 import sys
7 builtin_filters = ("basefilter", "baseurlfilter", "cachefilter",
8                    "decodingfilter", "encodingfilter", "gzipfilter",
9                    "logdebuginfofilter", "nsgmlsfilter",
10                    "responseheadersfilter", "sessionauthenticatefilter",
11                    "sessionfilter", "staticfilter", "tidyfilter",
12                    "virtualhostfilter", "xmlrpcfilter")
13 for name in builtin_filters:
14     newlocation = "cherrypy.filters." + name
15     m = __import__(newlocation, globals(), locals(), [''])
16     sys.modules["cherrypy.lib.filter." + name] = m
17     globals()[name] = m
Note: See TracBrowser for help on using the browser.

Hosted by WebFaction

Log in as guest/cpguest to create tickets