* src/docgen/RTFDoc.py: Completely switch from grampslib.
* src/docgen/PdfDoc.py: Typo. svn: r3103
This commit is contained in:
parent
389732b8ea
commit
ada183fad1
@ -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>
|
2004-04-21 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/SelectChild.py (on_save_child_clicked): Corrections.
|
* src/SelectChild.py (on_save_child_clicked): Corrections.
|
||||||
|
|
||||||
|
@ -591,8 +591,8 @@ try:
|
|||||||
print_label=_("Open in %s") % prog[1]
|
print_label=_("Open in %s") % prog[1]
|
||||||
else:
|
else:
|
||||||
print_label=None
|
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)
|
Plugins.register_draw_doc(type, PdfDoc, 1, 1, ".pdf", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('PDF document', PdflDoc, 1, 0, 1,".pdf", None)
|
Plugins.register_text_doc('PDF document', PdflDoc, 1, 0, 1,".pdf", None)
|
||||||
Plugins.register_draw_doc('PDF document', PdfDoc, 1, 1, ".pdf", None)
|
Plugins.register_draw_doc('PDF document', PdfDoc, 1, 1, ".pdf", None)
|
||||||
|
@ -128,9 +128,12 @@ class RTFDoc(BaseDoc.BaseDoc):
|
|||||||
|
|
||||||
if self.print_req:
|
if self.print_req:
|
||||||
apptype = 'application/rtf'
|
apptype = 'application/rtf'
|
||||||
prog = grampslib.default_application_command(apptype)
|
try:
|
||||||
os.environ["FILE"] = self.filename
|
app = GrampsMime.get_application(apptype)[0]
|
||||||
os.system ('%s "$FILE" &' % prog[0])
|
os.environ["FILE"] = self.filename
|
||||||
|
os.system ('%s "$FILE" &' % app)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user