diff options
author | ianb <devnull@localhost> | 2005-11-28 22:29:32 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-11-28 22:29:32 +0000 |
commit | 788a3a83f29cab60a87c8b55023f6a9a12a2292e (patch) | |
tree | a7747f6cfa5493331266659cda6f65e6fb9b761a /paste/recursive.py | |
parent | ddfe81497a3ba9d729b75d1d040e5d954504b190 (diff) | |
download | paste-788a3a83f29cab60a87c8b55023f6a9a12a2292e.tar.gz |
Fixes for including other files via recursive, from Brad Clements
Diffstat (limited to 'paste/recursive.py')
-rw-r--r-- | paste/recursive.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/recursive.py b/paste/recursive.py index 08c370c..bfd25de 100644 --- a/paste/recursive.py +++ b/paste/recursive.py @@ -92,7 +92,7 @@ class Includer(Recursive): """ def activate(self, environ): - response = IncludedResponse + response = IncludedResponse() def start_response(status, headers, exc_info=None): if exc_info: raise exc_info[0], exc_info[1], exc_info[2] @@ -122,11 +122,11 @@ class IncludedResponse(object): self.output.close() self.output = None - def write(self): + def write(self, s): assert self.output is not None, ( "This response has already been closed and no further data " "can be written.") - self.output.write() + self.output.write(s) def __str__(self): return self.body |