From: Evan Broder Date: Tue, 12 Aug 2008 07:34:17 +0000 (-0700) Subject: Fix PyHesiodFS to use auto-conversion convention X-Git-Tag: 1.0.0~11 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/commitdiff_plain/f2e13ce53aa1209779400a61c7779b87b280f7f8?ds=sidebyside Fix PyHesiodFS to use auto-conversion convention --- diff --git a/routefs/examples/pyhesiodfs.py b/routefs/examples/pyhesiodfs.py index 0a5aa3e..40ebcb2 100755 --- a/routefs/examples/pyhesiodfs.py +++ b/routefs/examples/pyhesiodfs.py @@ -30,16 +30,16 @@ class PyHesiodFS(routefs.RouteFS): return def getList(self, **kwargs): - return routefs.Directory(self.cache.keys() + ['README.txt']) + return self.cache.keys() + ['README.txt'] def getReadme(self, **kwargs): - return routefs.File(""" + return """ This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys, just access /mit/name. If you're using the Finder, try pressing Cmd+Shift+G and then entering /mit/name -""") +""" if __name__ == '__main__': routefs.main(PyHesiodFS)