Changeset 2061
- Timestamp:
- 10/31/08 09:25:37
- Files:
-
- trunk/cherrypy/_cpdispatch.py (modified) (1 diff)
- trunk/cherrypy/test/test_dynamicobjectmapping.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpdispatch.py
r2059 r2061 238 238 if subnode is None: 239 239 dispatch = getattr(node, 'dispatch', None) 240 if dispatch and callable(dispatch): 240 if dispatch and callable(dispatch) and not \ 241 getattr(dispatch, 'exposed', False): 241 242 subnode = dispatch(vpath=iternames) 242 243 name = iternames.pop(0) trunk/cherrypy/test/test_dynamicobjectmapping.py
r2060 r2061 224 224 self.getPage('/2/2/dispatch') 225 225 self.assertBody('SubSubRoot dispatch') 226 227 # The exposed dispatch will not be called as a dispatch 228 # method. 229 self.getPage('/2/2/foo/foo') 230 self.assertBody("SubSubRoot default") 226 231 227 232 # Dynamic dispatch will fail here for the subsubnodes

