* src/docgen/RTFDoc.py: Completely switch from grampslib.
* src/docgen/PdfDoc.py: Typo. svn: r3103
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
    #--------------------------------------------------------------------
 | 
			
		||||
    #
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user