From 4beb9427c0ff2f55aa83b76c8c47fa55675e8274 Mon Sep 17 00:00:00 2001 From: moculus Date: Tue, 24 Jul 2007 04:29:26 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- buffer2.py | 1 + method.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buffer2.py b/buffer2.py index 2b7ba58..612e215 100644 --- a/buffer2.py +++ b/buffer2.py @@ -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 diff --git a/method.py b/method.py index fdade4b..ea56ebb 100644 --- a/method.py +++ b/method.py @@ -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: