From: Brian Warner Date: Wed, 29 Oct 2008 04:54:06 +0000 (-0700) Subject: web/directory.py: slight shuffle to improve test coverage X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/flags?a=commitdiff_plain;h=e1d9169ba3d0f4b78a2bce1f2a6547534f7ba907;p=tahoe-lafs%2Ftahoe-lafs.git web/directory.py: slight shuffle to improve test coverage --- diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 207dc53c..73ae13fa 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -36,10 +36,10 @@ class BlockingFileError(Exception): def make_handler_for(node, parentnode=None, name=None): if parentnode: assert IDirectoryNode.providedBy(parentnode) - if IFileNode.providedBy(node): - return FileNodeHandler(node, parentnode, name) if IMutableFileNode.providedBy(node): return FileNodeHandler(node, parentnode, name) + if IFileNode.providedBy(node): + return FileNodeHandler(node, parentnode, name) if IDirectoryNode.providedBy(node): return DirectoryNodeHandler(node, parentnode, name) raise WebError("Cannot provide handler for '%s'" % node)