2008-01-17 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ScratchPad.py: remove tooltip for events as it crashes. * src/Utils.py: cleanup svn: r9869
This commit is contained in:
parent
ea262ce318
commit
eac853ccb7
@ -1,3 +1,7 @@
|
|||||||
|
2008-01-17 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||||
|
* src/ScratchPad.py: remove tooltip for events as it crashes.
|
||||||
|
* src/Utils.py: cleanup
|
||||||
|
|
||||||
2008-01-17 Benny Malengier <benny.malengier@gramps-project.org>
|
2008-01-17 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/plugins/WriteCD.py: check if gnome is the desktop, #1599
|
* src/plugins/WriteCD.py: check if gnome is the desktop, #1599
|
||||||
|
|
||||||
|
@ -235,27 +235,31 @@ class ScratchPadEvent(ScratchPadWrapper):
|
|||||||
def tooltip(self):
|
def tooltip(self):
|
||||||
global escape
|
global escape
|
||||||
|
|
||||||
s = "<big><b>%s</b></big>\n\n"\
|
# there are several errors in the below which all cause gramps to
|
||||||
"\t<b>%s:</b>\t%s\n"\
|
# crash
|
||||||
"\t<b>%s:</b>\t%s\n"\
|
|
||||||
"\t<b>%s:</b>\t%s\n"\
|
# s = "<big><b>%s</b></big>\n\n"\
|
||||||
"\t<b>%s:</b>\t%s\n"\
|
# "\t<b>%s:</b>\t%s\n"\
|
||||||
"\t<b>%s:</b>\t%s\n" % (
|
# "\t<b>%s:</b>\t%s\n"\
|
||||||
_("Event"),
|
# "\t<b>%s:</b>\t%s\n"\
|
||||||
_("Type"),escape(Utils.format_personal_event(self._obj.get_name())),
|
# "\t<b>%s:</b>\t%s\n"\
|
||||||
_("Date"),escape(DateHander.get_date(self._obj)),
|
# "\t<b>%s:</b>\t%s\n" % (
|
||||||
_("Place"),escape(place_title(self._db,self._obj)),
|
# _("Event"),
|
||||||
_("Cause"),escape(self._obj.get_cause()),
|
# _("Type"),escape(Utils.format_personal_event(self._obj.get_name())),
|
||||||
_("Description"), escape(self._obj.get_description()))
|
# _("Date"),escape(DateHander.get_date(self._obj)),
|
||||||
if len(self._obj.get_source_references()) > 0:
|
# _("Place"),escape(place_title(self._db,self._obj)),
|
||||||
psrc_ref = self._obj.get_source_references()[0]
|
# _("Cause"),escape(self._obj.get_cause()),
|
||||||
psrc_id = psrc_ref.get_reference_handle()
|
# _("Description"), escape(self._obj.get_description()))
|
||||||
psrc = self._db.get_source_from_handle(psrc_id)
|
# if len(self._obj.get_source_references()) > 0:
|
||||||
s += "\n<big><b>%s</b></big>\n\n"\
|
# psrc_ref = self._obj.get_source_references()[0]
|
||||||
"\t<b>%s:</b>\t%s\n" % (
|
# psrc_id = psrc_ref.get_reference_handle()
|
||||||
_("Primary source"),
|
# psrc = self._db.get_source_from_handle(psrc_id)
|
||||||
_("Name"),
|
# s += "\n<big><b>%s</b></big>\n\n"\
|
||||||
escape(short(psrc.get_title())))
|
# "\t<b>%s:</b>\t%s\n" % (
|
||||||
|
# _("Primary source"),
|
||||||
|
# _("Name"),
|
||||||
|
# escape(short(psrc.get_title())))
|
||||||
|
s = ""
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def is_valid(self):
|
def is_valid(self):
|
||||||
|
@ -83,6 +83,7 @@ gender = {
|
|||||||
gen.lib.Person.FEMALE : _("female"),
|
gen.lib.Person.FEMALE : _("female"),
|
||||||
gen.lib.Person.UNKNOWN : _("unknown"),
|
gen.lib.Person.UNKNOWN : _("unknown"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def format_gender( type):
|
def format_gender( type):
|
||||||
return gender.get(type[0], _("Invalid"))
|
return gender.get(type[0], _("Invalid"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user