From: Alain A. <ala...@wa...> - 2014-09-07 10:36:45
|
Hi, Trying to modify FamilyGroup.py Here is a part of the content of report_options.xml <option name="add_mpath" value="/home/alain/gramps-media/Book/Marriage/"/> <option name="add_ppath" value="/home/alain/gramps-media/Book/"/> Here is the content of __init() self.add_ppath = get_value('add_ppath') self.add_mpath = get_value('add_mpath') if self.add_ppath == "": self.add_ppath = db.get_mediapath(self) if self.add_mpath == "": self.add_mpath = db.get_mediapath(self) Here is the content of add_menu_options() self.add_ppath = TextOption(_("Photos path "),"") self.add_ppath.set_help(_("The path where to find persons photos. If empty, uses MediaPath ")) add_option("add_ppath", self.add_ppath) self.add_mpath = TextOption(_("Marriages path "),"") self.add_mpath.set_help(_("The path where to find marriages photos. If empty, uses MediaPath ")) add_option("add_mpath", self.add_mpath) Values are correctly kept in report_options.xml, but when I open the option box, strings are displayed each character using a line. Where do I fail ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-06-27 15:20) | HbIDE (Rev.274) | Five.Linux (r138) | Hw.Gui (2278) ------------------------------------------------------------------------ |