merge trunk from 19853 to 19947

svn: r19949
This commit is contained in:
Benny Malengier
2012-07-05 00:38:18 +00:00
360 changed files with 9231 additions and 4315 deletions

View File

@@ -7,41 +7,41 @@
pkgpythondir = $(datadir)/@PACKAGE@/plugins/gramplet
pkgpython_PYTHON = \
AgeOnDateGramplet.py \
AgeStats.py \
Attributes.py \
AttributesGramplet.py \
Backlinks.py \
CalendarGramplet.py \
Children.py \
Citations.py \
DescendGramplet.py \
EditExifMetadata.py \
Events.py \
FanChartGramplet.py \
FaqGramplet.py \
Filter.py \
Gallery.py \
GivenNameGramplet.py \
ageondategramplet.py \
agestats.py \
attributes.py \
attributesgramplet.py \
backlinks.py \
calendargramplet.py \
children.py \
citations.py \
descendgramplet.py \
editexifmetadata.py \
events.py \
fanchartgramplet.py \
faqgramplet.py \
filter.py \
gallery.py \
givennamegramplet.py \
gramplet.gpr.py \
MediaPreview.py \
MetadataViewer.py \
Notes.py \
PedigreeGramplet.py \
PersonDetails.py \
PersonResidence.py \
PlaceDetails.py \
PluginManagerGramplet.py\
QuickViewGramplet.py \
RelativeGramplet.py \
RepositoryDetails.py \
SessionLogGramplet.py \
StatsGramplet.py \
SurnameCloudGramplet.py \
ToDoGramplet.py \
TopSurnamesGramplet.py \
WelcomeGramplet.py \
WhatsNext.py
mediapreview.py \
metadataviewer.py \
notes.py \
pedigreegramplet.py \
persondetails.py \
personresidence.py \
placedetails.py \
pluginmanagergramplet.py\
quickviewgramplet.py \
relativegramplet.py \
repositorydetails.py \
sessionloggramplet.py \
statsgramplet.py \
surnamecloudgramplet.py \
todogramplet.py \
topsurnamesgramplet.py \
welcomegramplet.py \
whatsnext.py
pkgpyexecdir = @pkgpyexecdir@/plugins/gramplet

View File

@@ -21,7 +21,7 @@
#
from gui.listmodel import ListModel, NOSORT
from Utils import navigation_label
from gen.utils.db import navigation_label
from gen.plug import Gramplet
from gen.ggettext import gettext as _
from gi.repository import Gtk

View File

@@ -24,7 +24,7 @@ from gui.listmodel import ListModel, NOSORT
from gen.plug import Gramplet
from gen.ggettext import gettext as _
from gen.display.name import displayer as name_displayer
from gen.utils import get_birth_or_fallback, get_death_or_fallback
from gen.utils.db import get_birth_or_fallback, get_death_or_fallback
import gen.datehandler
from gen.errors import WindowActiveError
from gi.repository import Gtk

View File

@@ -41,7 +41,7 @@ from gen.plug import Gramplet
from gen.plug.report import utils as ReportUtils
from gen.display.name import displayer as name_displayer
import gen.datehandler
from gen.utils import get_birth_or_fallback, get_death_or_fallback
from gen.utils.db import get_birth_or_fallback, get_death_or_fallback
class DescendantGramplet(Gramplet):
def init(self):

View File

@@ -64,7 +64,7 @@ from gui.dialog import QuestionDialog, OptionDialog
from gen.lib import Date
import gen.mime
import Utils
from gen.utils.file import search_for, media_path_full
from gen.utils.place import conv_lat_lon
from gen.db import DbTxn
@@ -82,9 +82,9 @@ else:
# validate the exiv2 is installed and its executable
system_platform = os.sys.platform
if system_platform == "win32":
EXIV2_FOUND = "exiv2.exe" if Utils.search_for("exiv2.exe") else False
EXIV2_FOUND = "exiv2.exe" if search_for("exiv2.exe") else False
else:
EXIV2_FOUND = "exiv2" if Utils.search_for("exiv2") else False
EXIV2_FOUND = "exiv2" if search_for("exiv2") else False
if not EXIV2_FOUND:
msg = 'You must have exiv2 and its development file installed.'
raise SystemExit(msg)
@@ -406,7 +406,7 @@ class EditExifMetadata(Gramplet):
return
# get file path and attempt to find it?
self.image_path =Utils.media_path_full(db, self.orig_image.get_path() )
self.image_path = media_path_full(db, self.orig_image.get_path() )
if not os.path.isfile(self.image_path):
self.set_has_data(False)
return
@@ -583,7 +583,7 @@ class EditExifMetadata(Gramplet):
if media is None:
return False
full_path = Utils.media_path_full(self.dbstate.db, media.get_path())
full_path = media_path_full(self.dbstate.db, media.get_path())
return self.view.get_has_data(full_path)
def __create_button(self, pos, text, callback =[], icon =False, sensitive =False):

View File

@@ -25,7 +25,7 @@ from gen.plug import Gramplet
from gen.ggettext import gettext as _
from gen.display.name import displayer as name_displayer
import gen.datehandler
from gen.utils import get_birth_or_fallback, get_marriage_or_fallback
from gen.utils.db import get_birth_or_fallback, get_marriage_or_fallback
from gen.errors import WindowActiveError
from gi.repository import Gtk
from gen.config import config

View File

@@ -52,7 +52,7 @@ except ImportError:
from gen.display.name import displayer as name_displayer
from gen.ggettext import gettext as _
from gen.plug import Gramplet
from Utils import (find_children, find_parents, find_witnessed_people)
from gen.utils.db import (find_children, find_parents, find_witnessed_people)
from libformatting import FormattingHelper
import gen.lib
from gen.errors import WindowActiveError

View File

@@ -25,7 +25,7 @@
#------------------------------------------------------------------------
from gen.plug import Gramplet
from gen.ggettext import sgettext as _
import const
from gen.const import URL_MANUAL_PAGE
#------------------------------------------------------------------------
#
@@ -36,7 +36,7 @@ class FAQGramplet(Gramplet):
def init(self):
self.set_use_markup(True)
self.clear_text()
WIKI = const.URL_MANUAL_PAGE
WIKI = URL_MANUAL_PAGE
self.render_text(_("<b><a wiki='%s_-_FAQ'>Frequently Asked Questions</a></b>\n(needs a connection to the internet)\n") % WIKI)
self.render_text("\n<b>%s</b>\n\n" % _("Editing Spouses"))

View File

@@ -22,7 +22,7 @@
from gen.plug import Gramplet
from gui.widgets import Photo
import Utils
from gen.utils.file import media_path_full
from gi.repository import Gtk
class Gallery(Gramplet):
@@ -59,7 +59,7 @@ class Gallery(Gramplet):
for media_ref in media_list:
media_handle = media_ref.get_reference_handle()
media = self.dbstate.db.get_object_from_handle(media_handle)
full_path = Utils.media_path_full(self.dbstate.db, media.get_path())
full_path = media_path_full(self.dbstate.db, media.get_path())
mime_type = media.get_mime_type()
if mime_type and mime_type.startswith("image"):
photo = Photo(self.uistate.screen_height() < 1000)

View File

@@ -34,7 +34,7 @@ register(GRAMPLET,
version="2.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="AgeOnDateGramplet.py",
fname="ageondategramplet.py",
height=200,
gramplet = 'AgeOnDateGramplet',
gramplet_title=_("Age on Date"),
@@ -45,7 +45,7 @@ register(GRAMPLET,
name = _("Age Stats"),
description = _("Gramplet showing graphs of various ages"),
status = STABLE,
fname="AgeStats.py",
fname="agestats.py",
height=100,
expand=True,
gramplet = 'AgeStatsGramplet',
@@ -61,7 +61,7 @@ register(GRAMPLET,
name=_("Attributes"),
description = _("Gramplet showing active person's attributes"),
status = STABLE,
fname="AttributesGramplet.py",
fname="attributesgramplet.py",
height=150,
expand=True,
gramplet = 'AttributesGramplet',
@@ -78,7 +78,7 @@ register(GRAMPLET,
name=_("Calendar"),
description = _("Gramplet showing calendar and events on specific dates in history"),
status = STABLE,
fname="CalendarGramplet.py",
fname="calendargramplet.py",
height=200,
gramplet = 'CalendarGramplet',
gramplet_title=_("Calendar"),
@@ -91,7 +91,7 @@ register(GRAMPLET,
name=_("Descendant"),
description = _("Gramplet showing active person's descendants"),
status = STABLE,
fname="DescendGramplet.py",
fname="descendgramplet.py",
height=100,
expand=True,
gramplet = 'DescendantGramplet',
@@ -108,7 +108,7 @@ register(GRAMPLET,
name=_("Fan Chart"),
description = _("Gramplet showing active person's direct ancestors as a fanchart"),
status = STABLE,
fname="FanChartGramplet.py",
fname="fanchartgramplet.py",
height=430,
expand=True,
gramplet = 'FanChartGramplet',
@@ -125,7 +125,7 @@ register(GRAMPLET,
name=_("FAQ"),
description = _("Gramplet showing frequently asked questions"),
status = STABLE,
fname="FaqGramplet.py",
fname="faqgramplet.py",
height=300,
gramplet = 'FAQGramplet',
gramplet_title=_("FAQ"),
@@ -138,7 +138,7 @@ register(GRAMPLET,
name=_("Given Name Cloud"),
description = _("Gramplet showing all given names as a text cloud"),
status = STABLE,
fname="GivenNameGramplet.py",
fname="givennamegramplet.py",
height=300,
expand=True,
gramplet = 'GivenNameCloudGramplet',
@@ -152,7 +152,7 @@ register(GRAMPLET,
name=_("Pedigree"),
description = _("Gramplet showing active person's ancestors"),
status = STABLE,
fname="PedigreeGramplet.py",
fname="pedigreegramplet.py",
height=300,
gramplet = 'PedigreeGramplet',
gramplet_title=_("Pedigree"),
@@ -169,7 +169,7 @@ register(GRAMPLET,
name=_("Plugin Manager"),
description = _("Gramplet showing available third-party plugins (addons)"),
status = STABLE,
fname="PluginManagerGramplet.py",
fname="pluginmanagergramplet.py",
height=300,
expand=True,
gramplet = 'PluginManagerGramplet',
@@ -183,7 +183,7 @@ register(GRAMPLET,
name=_("Quick View"),
description = _("Gramplet showing an active item Quick View"),
status = STABLE,
fname="QuickViewGramplet.py",
fname="quickviewgramplet.py",
height=300,
expand=True,
gramplet = 'QuickViewGramplet',
@@ -199,7 +199,7 @@ register(GRAMPLET,
name=_("Relatives"),
description = _("Gramplet showing active person's relatives"),
status = STABLE,
fname="RelativeGramplet.py",
fname="relativegramplet.py",
height=200,
gramplet = 'RelativesGramplet',
gramplet_title=_("Relatives"),
@@ -215,7 +215,7 @@ register(GRAMPLET,
name=_("Session Log"),
description = _("Gramplet showing all activity for this session"),
status = STABLE,
fname="SessionLogGramplet.py",
fname="sessionloggramplet.py",
height=230,
#data=['no'],
gramplet = 'LogGramplet',
@@ -229,7 +229,7 @@ register(GRAMPLET,
name=_("Statistics"),
description = _("Gramplet showing summary data of the family tree"),
status = STABLE,
fname="StatsGramplet.py",
fname="statsgramplet.py",
height=230,
expand=True,
gramplet = 'StatsGramplet',
@@ -243,7 +243,7 @@ register(GRAMPLET,
name=_("Surname Cloud"),
description = _("Gramplet showing all surnames as a text cloud"),
status = STABLE,
fname="SurnameCloudGramplet.py",
fname="surnamecloudgramplet.py",
height=300,
expand=True,
gramplet = 'SurnameCloudGramplet',
@@ -257,7 +257,7 @@ register(GRAMPLET,
name=_("TODO"),
description = _("Gramplet for generic notes"),
status = STABLE,
fname="ToDoGramplet.py",
fname="todogramplet.py",
height=300,
expand=True,
gramplet = 'TODOGramplet',
@@ -271,7 +271,7 @@ register(GRAMPLET,
name=_("Top Surnames"),
description = _("Gramplet showing most frequent surnames in this tree"),
status = STABLE,
fname="TopSurnamesGramplet.py",
fname="topsurnamesgramplet.py",
height=230,
gramplet = 'TopSurnamesGramplet',
gramplet_title=_("Top Surnames"),
@@ -284,7 +284,7 @@ register(GRAMPLET,
name=_("Welcome"),
description = _("Gramplet showing a welcome message"),
status = STABLE,
fname="WelcomeGramplet.py",
fname="welcomegramplet.py",
height=300,
expand=True,
gramplet = 'WelcomeGramplet',
@@ -298,7 +298,7 @@ register(GRAMPLET,
name =_("What's Next"),
description = _("Gramplet suggesting items to research"),
status = STABLE,
fname="WhatsNext.py",
fname="whatsnext.py",
height = 230,
expand = True,
gramplet = 'WhatNextGramplet',
@@ -323,7 +323,7 @@ register(GRAMPLET,
version = '1.5.0',
gramps_target_version = '3.5',
status = STABLE,
fname = "EditExifMetadata.py",
fname = "editexifmetadata.py",
help_url = "Edit Image Exif Metadata",
authors = ['Rob G. Healey'],
authors_email = ['robhealey1@gmail.com'],
@@ -340,7 +340,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="PersonDetails.py",
fname="persondetails.py",
height=200,
gramplet = 'PersonDetails',
gramplet_title=_("Details"),
@@ -354,7 +354,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="RepositoryDetails.py",
fname="repositorydetails.py",
height=200,
gramplet = 'RepositoryDetails',
gramplet_title=_("Details"),
@@ -368,7 +368,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="PlaceDetails.py",
fname="placedetails.py",
height=200,
gramplet = 'PlaceDetails',
gramplet_title=_("Details"),
@@ -382,7 +382,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="MediaPreview.py",
fname="mediapreview.py",
height=200,
gramplet = 'MediaPreview',
gramplet_title=_("Preview"),
@@ -406,7 +406,7 @@ if available:
version = "1.0.0",
gramps_target_version = "3.5",
status = STABLE,
fname = "MetadataViewer.py",
fname = "metadataviewer.py",
height = 200,
gramplet = 'MetadataViewer',
gramplet_title = _("Image Metadata"),
@@ -420,7 +420,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="PersonResidence.py",
fname="personresidence.py",
height=200,
gramplet = 'PersonResidence',
gramplet_title=_("Residence"),
@@ -434,7 +434,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Events.py",
fname="events.py",
height=200,
gramplet = 'PersonEvents',
gramplet_title=_("Events"),
@@ -448,7 +448,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Events.py",
fname="events.py",
height=200,
gramplet = 'FamilyEvents',
gramplet_title=_("Events"),
@@ -462,7 +462,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'PersonGallery',
gramplet_title=_("Gallery"),
@@ -476,7 +476,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'FamilyGallery',
gramplet_title=_("Gallery"),
@@ -490,7 +490,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'EventGallery',
gramplet_title=_("Gallery"),
@@ -504,7 +504,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'PlaceGallery',
gramplet_title=_("Gallery"),
@@ -518,7 +518,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'SourceGallery',
gramplet_title=_("Gallery"),
@@ -532,7 +532,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Gallery.py",
fname="gallery.py",
height=200,
gramplet = 'CitationGallery',
gramplet_title=_("Gallery"),
@@ -546,7 +546,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Attributes.py",
fname="attributes.py",
height=200,
gramplet = 'PersonAttributes',
gramplet_title=_("Attributes"),
@@ -560,7 +560,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Attributes.py",
fname="attributes.py",
height=200,
gramplet = 'EventAttributes',
gramplet_title=_("Attributes"),
@@ -574,7 +574,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Attributes.py",
fname="attributes.py",
height=200,
gramplet = 'FamilyAttributes',
gramplet_title=_("Attributes"),
@@ -588,7 +588,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Attributes.py",
fname="attributes.py",
height=200,
gramplet = 'MediaAttributes',
gramplet_title=_("Attributes"),
@@ -602,7 +602,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'PersonNotes',
gramplet_title=_("Notes"),
@@ -616,7 +616,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'EventNotes',
gramplet_title=_("Notes"),
@@ -630,7 +630,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'FamilyNotes',
gramplet_title=_("Notes"),
@@ -644,7 +644,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'PlaceNotes',
gramplet_title=_("Notes"),
@@ -658,7 +658,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'SourceNotes',
gramplet_title=_("Notes"),
@@ -672,7 +672,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'CitationNotes',
gramplet_title=_("Notes"),
@@ -686,7 +686,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'RepositoryNotes',
gramplet_title=_("Notes"),
@@ -700,7 +700,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Notes.py",
fname="notes.py",
height=200,
gramplet = 'MediaNotes',
gramplet_title=_("Notes"),
@@ -714,7 +714,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Citations.py",
fname="citations.py",
height=200,
gramplet = 'PersonCitations',
gramplet_title=_("Citations"),
@@ -728,7 +728,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Citations.py",
fname="citations.py",
height=200,
gramplet = 'EventCitations',
gramplet_title=_("Citations"),
@@ -742,7 +742,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Citations.py",
fname="citations.py",
height=200,
gramplet = 'FamilyCitations',
gramplet_title=_("Citations"),
@@ -756,7 +756,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Citations.py",
fname="citations.py",
height=200,
gramplet = 'PlaceCitations',
gramplet_title=_("Citations"),
@@ -770,7 +770,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Citations.py",
fname="citations.py",
height=200,
gramplet = 'MediaCitations',
gramplet_title=_("Citations"),
@@ -784,7 +784,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Children.py",
fname="children.py",
height=200,
gramplet = 'PersonChildren',
gramplet_title=_("Children"),
@@ -798,7 +798,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Children.py",
fname="children.py",
height=200,
gramplet = 'FamilyChildren',
gramplet_title=_("Children"),
@@ -812,7 +812,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'PersonBacklinks',
gramplet_title=_("References"),
@@ -826,7 +826,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'EventBacklinks',
gramplet_title=_("References"),
@@ -840,7 +840,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'FamilyBacklinks',
gramplet_title=_("References"),
@@ -854,7 +854,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'PlaceBacklinks',
gramplet_title=_("References"),
@@ -868,7 +868,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'SourceBacklinks',
gramplet_title=_("References"),
@@ -882,7 +882,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'CitationBacklinks',
gramplet_title=_("References"),
@@ -896,7 +896,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'RepositoryBacklinks',
gramplet_title=_("References"),
@@ -910,7 +910,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'MediaBacklinks',
gramplet_title=_("References"),
@@ -924,7 +924,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Backlinks.py",
fname="backlinks.py",
height=200,
gramplet = 'NoteBacklinks',
gramplet_title=_("References"),
@@ -938,7 +938,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'PersonFilter',
gramplet_title=_("Filter"),
@@ -952,7 +952,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'FamilyFilter',
gramplet_title=_("Filter"),
@@ -966,7 +966,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'EventFilter',
gramplet_title=_("Filter"),
@@ -980,7 +980,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'SourceFilter',
gramplet_title=_("Filter"),
@@ -994,7 +994,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'CitationFilter',
gramplet_title=_("Filter"),
@@ -1008,7 +1008,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'PlaceFilter',
gramplet_title=_("Filter"),
@@ -1022,7 +1022,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'MediaFilter',
gramplet_title=_("Filter"),
@@ -1036,7 +1036,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'RepositoryFilter',
gramplet_title=_("Filter"),
@@ -1050,7 +1050,7 @@ register(GRAMPLET,
version="1.0.0",
gramps_target_version="3.5",
status = STABLE,
fname="Filter.py",
fname="filter.py",
height=200,
gramplet = 'NoteFilter',
gramplet_title=_("Filter"),

View File

@@ -21,7 +21,7 @@
from gen.plug import Gramplet
from gui.widgets import Photo
import Utils
from gen.utils.file import media_path_full
from gi.repository import Gtk
class MediaPreview(Gramplet):
@@ -68,7 +68,7 @@ class MediaPreview(Gramplet):
"""
Load the primary image if it exists.
"""
self.full_path = Utils.media_path_full(self.dbstate.db,
self.full_path = media_path_full(self.dbstate.db,
media.get_path())
mime_type = media.get_mime_type()
self.photo.set_image(self.full_path, mime_type)

View File

@@ -24,7 +24,7 @@
from libmetadata import MetadataView
from gen.plug import Gramplet
import Utils
from gen.utils.file import media_path_full
class MetadataViewer(Gramplet):
"""
@@ -49,7 +49,7 @@ class MetadataViewer(Gramplet):
media = self.dbstate.db.get_object_from_handle(active_handle)
if media:
full_path = Utils.media_path_full(self.dbstate.db, media.get_path())
full_path = media_path_full(self.dbstate.db, media.get_path())
has_data = self.view.display_exif_tags(full_path)
self.set_has_data(has_data)
else:
@@ -67,5 +67,5 @@ class MetadataViewer(Gramplet):
if media is None:
return False
full_path = Utils.media_path_full(self.dbstate.db, media.get_path())
full_path = media_path_full(self.dbstate.db, media.get_path())
return self.view.get_has_data(full_path)

View File

@@ -38,7 +38,7 @@ from gen.ggettext import ngettext
from gen.display.name import displayer as name_displayer
import gen.datehandler
import gen
from gen.utils import get_birth_or_fallback, get_death_or_fallback
from gen.utils.db import get_birth_or_fallback, get_death_or_fallback
#------------------------------------------------------------------------
#

View File

@@ -25,7 +25,7 @@ from gui.widgets import Photo
from gen.display.name import displayer as name_displayer
from gen.ggettext import gettext as _
import gen.datehandler
import Utils
from gen.utils.file import media_path_full
from gi.repository import Gtk
from gi.repository import Pango
@@ -223,7 +223,7 @@ class PersonDetails(Gramplet):
media_ref = media_list[0]
object_handle = media_ref.get_reference_handle()
obj = self.dbstate.db.get_object_from_handle(object_handle)
full_path = Utils.media_path_full(self.dbstate.db, obj.get_path())
full_path = media_path_full(self.dbstate.db, obj.get_path())
mime_type = obj.get_mime_type()
if mime_type and mime_type.startswith("image"):
self.photo.set_image(full_path, mime_type,

View File

@@ -23,7 +23,7 @@ from gen.plug import Gramplet
from gui.widgets import Photo
from gen.ggettext import gettext as _
from gen.utils.place import conv_lat_lon
import Utils
from gen.utils.file import media_path_full
from gi.repository import Gtk
from gi.repository import Pango
@@ -153,7 +153,7 @@ class PlaceDetails(Gramplet):
media_ref = media_list[0]
object_handle = media_ref.get_reference_handle()
obj = self.dbstate.db.get_object_from_handle(object_handle)
full_path = Utils.media_path_full(self.dbstate.db, obj.get_path())
full_path = media_path_full(self.dbstate.db, obj.get_path())
mime_type = obj.get_mime_type()
if mime_type and mime_type.startswith("image"):
self.photo.set_image(full_path, mime_type,

View File

@@ -30,7 +30,7 @@ from gen.db import PERSON_KEY, FAMILY_KEY, TXNDEL
from gen.plug import Gramplet
from gen.ggettext import sgettext as _
from gen.display.name import displayer as name_displayer
from Utils import family_name
from gen.utils.db import family_name
#------------------------------------------------------------------------
#

View File

@@ -32,7 +32,7 @@ import posixpath
#------------------------------------------------------------------------
from gen.plug import Gramplet
from gen.ggettext import sgettext as _
from Utils import media_path_full
from gen.utils.file import media_path_full
import gen.datehandler
import gen