def __call__(self, value, *args, **kwargs): path=makePathAbsolute(cleanPath(value)) try: if not isDirectory(path): return "Not a directory" except OSError, e: return e.strerror
def __call__(self, value, *args, **kwargs): path = makePathAbsolute(cleanPath(value)) try: if not isDirectory(path): return "Not a directory" except OSError, e: return e.strerror
def testAbsolution(self): self.assertEqual(makePathAbsolute(""), self.home) self.assertEqual(makePathAbsolute("/tmp"), "/tmp")
def getFilesystemPath(self): relpath = self.getRelativePath() if not relpath: raise AttributeError return makePathAbsolute(relpath)