def __init__(self, *args, **kwargs):
super(PyHesiodFS, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs):
super(PyHesiodFS, self).__init__(*args, **kwargs)
def make_map(self):
m = Mapper()
m.connect('', controller='getList')
m.connect('README.txt', controller='getReadme')
m.connect(':action', controller='getLocker')
return m
def make_map(self):
m = Mapper()
m.connect('', controller='getList')
m.connect('README.txt', controller='getReadme')
m.connect(':action', controller='getLocker')
return m
def getLocker(self, action, **kwargs):
if action in self.cache:
return routefs.Symlink(self.cache[action])
def getLocker(self, action, **kwargs):
if action in self.cache:
return routefs.Symlink(self.cache[action])
return routefs.Symlink(self.cache[action])
except (TypeError, KeyError, IndexError):
return
return routefs.Symlink(self.cache[action])
except (TypeError, KeyError, IndexError):
return
def getList(self, **kwargs):
return self.cache.keys() + ['README.txt']
def getList(self, **kwargs):
return self.cache.keys() + ['README.txt']
def getReadme(self, **kwargs):
return """
This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys,
def getReadme(self, **kwargs):
return """
This is the pyHesiodFS FUSE automounter. To access a Hesiod filsys,