This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cherrypy | |
class MultiViewHandler(object): | |
def __new__(cls): | |
"""Do something to be able to use the right view to the | |
right Accept header | |
""" | |
class SpecialDispatcher(cherrypy.dispatcher.Dispatcher) | |
"""Custom dispatcher to use the special properties of the |
NewerOlder