* src/docgen/RTFDoc.py: Completely switch from grampslib.
* src/docgen/PdfDoc.py: Typo. svn: r3103
This commit is contained in:
parent
cd5e0d9a37
commit
037a388949
@ -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.
|
||||
|
||||
|
@ -591,8 +591,8 @@ 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_draw_doc(type, PdfDoc, 1, 1, ".pdf", 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)
|
||||
Plugins.register_draw_doc('PDF document', PdfDoc, 1, 1, ".pdf", None)
|
||||
|
@ -128,9 +128,12 @@ class RTFDoc(BaseDoc.BaseDoc):
|
||||
|
||||
if self.print_req:
|
||||
apptype = 'application/rtf'
|
||||
prog = grampslib.default_application_command(apptype)
|
||||
os.environ["FILE"] = self.filename
|
||||
os.system ('%s "$FILE" &' % prog[0])
|
||||
try:
|
||||
app = GrampsMime.get_application(apptype)[0]
|
||||
os.environ["FILE"] = self.filename
|
||||
os.system ('%s "$FILE" &' % app)
|
||||
except:
|
||||
pass
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user