branch : pmacs2
This commit is contained in:
moculus 2007-07-24 04:29:26 +00:00
parent 29fa6a3d7a
commit 4beb9427c0
2 changed files with 2 additions and 1 deletions

View File

@ -540,6 +540,7 @@ class PathListBuffer(DirBuffer):
def __init__(self, name, paths, nl='\n'):
Buffer.__init__(self, nl)
self.paths = paths
self.path = os.getcwd()
self._name = name
def path_exists(self):
raise Exception

View File

@ -188,7 +188,7 @@ class ViewBufferParent(Method):
def _execute(self, w, **vargs):
b = w.buffer
if not hasattr(b, 'path'):
w.set_error('Buffer has not path')
w.set_error('Buffer has no path')
elif b.path == '/':
w.set_error("Root directory has no parent")
else: