def __init__(self, pathname, filter, childNotFound=None): Resource.__init__(self) FilePath.__init__(self, pathname) self.filter = filter if childNotFound: self.childNotFound = childNotFound else: self.childNotFound = NoResource("CGI directories do not support directory listing.")
def __init__(self, path): FilePath.__init__(self, path) self.ini = ConfigParser() self.ini.read(self.child('tileset.ini').path) self.name = self.path.split('/')[-1] for sect in self.ini.sections(): self.ini.set(sect, 'set', self.name)
def __init__(self, pathname, filter): Resource.__init__(self) FilePath.__init__(self, pathname) self.filter = filter