Did I find the right examples for you? yes no

All Samples(70)  |  Call(55)  |  Derive(0)  |  Import(15)

src/g/r/gramps-3.4.2/src/docgen/ODSTab.py   Gramps(Download)
            self.f = open(self.content_xml,"wb")
        except IOError,msg:
            raise Errors.ReportError(_("Could not create %s") % self.content_xml, msg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.content_xml)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.filename)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.styles_xml, msg)
            raise Errors.ReportError(errmsg)
        except:
            pass

src/g/r/gramps-3.4.2/src/plugins/docgen/SvgDrawDoc.py   Gramps(Download)
            self.f = open(name,"w")
        except IOError,msg:
            raise Errors.ReportError(_("Could not create %s") % name, msg)
        except:
            raise Errors.ReportError(_("Could not create %s") % name)

src/g/r/gramps-3.4.2/src/plugins/textreport/TagReport.py   Gramps(Download)
from Filters import GenericFilterFactory, Rules
from gen.display.name import displayer as name_displayer
from Errors import ReportError
import DateHandler
 
        self.tag = menu.get_option_by_name('tag').get_value()
        if not self.tag:
            raise ReportError(_('Tag Report'),
                _('You must first create a tag before running this report.'))
 

src/g/r/gramps-3.4.2/src/plugins/lib/libhtmlbackend.py   Gramps(Download)
            errmsg = "%s\n%s" % (_("Could not create %s") %
                                 self._filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") %
                errmsg = "%s\n%s" % (_("Could not create %s") %
                                     self.datadirfull(), msg)
                raise Errors.ReportError(errmsg)
            except:
                raise Errors.ReportError(_("Could not create %s") %

src/g/r/gramps-3.4.2/src/plugins/docgen/ODFDoc.py   Gramps(Download)
        except IOError, msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.filename)
                errmsg = "%s\n%s" % (_("Could not open %s") % image[0],
                                     msg)
                raise Errors.ReportError(errmsg)
        zfile.close()
 

src/g/r/gramps-3.4.2/src/plugins/docgen/RTFDoc.py   Gramps(Download)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.filename)

src/g/r/gramps-3.4.2/src/plugins/docgen/PSDrawDoc.py   Gramps(Download)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.filename)

src/g/r/gramps-3.4.2/src/plugins/docgen/PdfDoc.py   Gramps(Download)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % filename)

src/g/r/gramps-3.4.2/src/plugins/docgen/AsciiDoc.py   Gramps(Download)
        except IOError,msg:
            errmsg = "%s\n%s" % (_("Could not create %s") % self.filename, msg)
            raise Errors.ReportError(errmsg)
        except:
            raise Errors.ReportError(_("Could not create %s") % self.filename)

src/g/r/gramps-3.4.2/src/plugins/drawreport/DescendTree.py   Gramps(Download)
from gen.ggettext import sgettext as _
 
from Errors import ReportError
 
from gen.plug.menu import TextOption
        center1 = self.database.get_person_from_gramps_id(person_id)
        if center1 is None:
            raise ReportError(_("Person %s is not in the Database") % person_id)
        center1_h = center1.get_handle()  #could be mom too.
 
        family1 = self.database.get_family_from_gramps_id(family_id)
        if family1 is None:
            raise ReportError(_("Family %s is not in the Database") % family_id)
        family1_h = family1.get_handle() 
 

  1 | 2 | 3  Next