* src/docgen/RTFDoc.py: Completely switch from grampslib.

* src/docgen/PdfDoc.py: Typo.


svn: r3103
This commit is contained in:
Alex Roitman 2004-04-23 16:55:24 +00:00
parent cd5e0d9a37
commit 037a388949
3 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2004-04-23 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/RTFDoc.py: Completely switch from grampslib.
* src/docgen/PdfDoc.py: Typo.
2004-04-21 Alex Roitman <shura@alex.neuro.umn.edu>
* src/SelectChild.py (on_save_child_clicked): Corrections.

View File

@ -591,7 +591,7 @@ try:
print_label=_("Open in %s") % prog[1]
else:
print_label=None
Plugins.register_text_doc(type, PdfDoc, 1, 0, 1, ".html", print_label)
Plugins.register_text_doc(type, PdfDoc, 1, 0, 1, ".pdf", print_label)
Plugins.register_draw_doc(type, PdfDoc, 1, 1, ".pdf", print_label)
except:
Plugins.register_text_doc('PDF document', PdflDoc, 1, 0, 1,".pdf", None)

View File

@ -128,9 +128,12 @@ class RTFDoc(BaseDoc.BaseDoc):
if self.print_req:
apptype = 'application/rtf'
prog = grampslib.default_application_command(apptype)
try:
app = GrampsMime.get_application(apptype)[0]
os.environ["FILE"] = self.filename
os.system ('%s "$FILE" &' % prog[0])
os.system ('%s "$FILE" &' % app)
except:
pass
#--------------------------------------------------------------------
#