Commits

Rob Lanphier committed 765559e

Just print the basename of the schema, rather than the whole thing

Comments (0)

Files changed (1)

jsonwidget/termedit.py

         return filename
 
     def get_right_header_text(self):
-        return "schema: " + self.schema.get_filename_text()
+        filename = self.schema.get_filename()
+        if filename is None:
+            filename = "(new file)"
+        else:
+            filename = os.path.basename(filename)
+        return "schema: " + filename