diff options
author | Robert Collins <robertc@robertcollins.net> | 2010-01-14 19:00:37 +1100 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2010-01-14 19:00:37 +1100 |
commit | 641bfc36974c673512f8bd2b5e82f55b2e6092d8 (patch) | |
tree | 77bc67c061ac35bd48bb0e7611ec9d90dfd942e6 /testrepository/ui/__init__.py | |
parent | a0ec5a99b91832f96684852bce5941dd25cc759f (diff) | |
download | testrepository-git-641bfc36974c673512f8bd2b5e82f55b2e6092d8.tar.gz |
Add stream output support for the UI.
Diffstat (limited to 'testrepository/ui/__init__.py')
-rw-r--r-- | testrepository/ui/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testrepository/ui/__init__.py b/testrepository/ui/__init__.py index eac93a1..d6d4339 100644 --- a/testrepository/ui/__init__.py +++ b/testrepository/ui/__init__.py @@ -102,6 +102,17 @@ class AbstractUI(object): """ raise NotImplementedError(self.output_results) + def output_stream(self, stream): + """Show a byte stream to the user. + + This is not currently typed, but in future a MIME type may be + permitted. + + :param stream: A file like object that can be read from. The UI will + not close the file. + """ + raise NotImplementedError(self.output_results) + def output_table(self, table): """Show a table to the user. |