The default output functions now properly print the name of the class.

This commit is contained in:
Adam Waldenberg 2013-03-11 09:06:05 +01:00
parent 37c4260149
commit 53b0cfba37
1 changed files with 3 additions and 3 deletions

View File

@ -22,13 +22,13 @@ import format
class Outputable(object):
def output_html(self):
print("HTML output not yet supported in " + self + ".")
print("HTML output not yet supported in \"" + self.__class__.__name__ + "\".")
def output_text(self):
print("Text output not yet supported in " + self + ".")
print("Text output not yet supported in \"" + self.__class__.__name__ + "\".")
def output_xml(self):
print("XML output not yet supported in " + self + ".")
print("XML output not yet supported in \"" + self.__class__.__name__ + "\".")
def output(outputable):
if format.get_selected() == "html":