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

Changeset 456

Show
Ignore:
Timestamp:
07/12/05 00:09:49
Author:
peterhunt
Message:

Fix to cptools.PositionalParametersAware? that broke NotFound? functionality.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/cptools.py

    r382 r456  
    3030Just a few convenient functions and classes 
    3131""" 
     32 
     33import cherrypy 
    3234 
    3335import inspect 
     
    103105        if hasattr( self, args[ 0 ] ): 
    104106            return getattr( self, args[ 0 ] )( *args[ 1: ], **kwargs ) 
     107        else: 
     108            raise cherrypy.NotFound, cherrypy.request.path 
    105109    default.exposed = True 
    106110     

Hosted by WebFaction

Log in as guest/cpguest to create tickets