Geography: as geography.gpr.py is only used to load the geography modules if the osmgpsmap library
is present, we can force gramps_target_version to the current version of gramps. svn: r19300
This commit is contained in:
parent
180861bbee
commit
9aaffb82f8
@ -27,6 +27,11 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# As this file is only used to load the modules if the osmgpsmap library is
|
||||||
|
# available, we can force gramps_target_version to the current version of gramps.
|
||||||
|
from const import VERSION_TUPLE
|
||||||
|
MODULE_VERSION="%1d.%1d" % (VERSION_TUPLE[0], VERSION_TUPLE[1])
|
||||||
|
|
||||||
try :
|
try :
|
||||||
import osmgpsmap
|
import osmgpsmap
|
||||||
OSMGPSMAP = True
|
OSMGPSMAP = True
|
||||||
@ -49,7 +54,7 @@ if OSMGPSMAP:
|
|||||||
description = _("A view showing the places visited by "
|
description = _("A view showing the places visited by "
|
||||||
"one person during his life."),
|
"one person during his life."),
|
||||||
version = '1.0',
|
version = '1.0',
|
||||||
gramps_target_version = '3.5',
|
gramps_target_version = MODULE_VERSION,
|
||||||
status = STABLE,
|
status = STABLE,
|
||||||
fname = 'geoperson.py',
|
fname = 'geoperson.py',
|
||||||
authors = [u"Serge Noiraud"],
|
authors = [u"Serge Noiraud"],
|
||||||
@ -65,7 +70,7 @@ if OSMGPSMAP:
|
|||||||
name = _("All known Places"),
|
name = _("All known Places"),
|
||||||
description = _("A view showing all places of the database."),
|
description = _("A view showing all places of the database."),
|
||||||
version = '1.0',
|
version = '1.0',
|
||||||
gramps_target_version = '3.5',
|
gramps_target_version = MODULE_VERSION,
|
||||||
status = STABLE,
|
status = STABLE,
|
||||||
fname = 'geoplaces.py',
|
fname = 'geoplaces.py',
|
||||||
authors = [u"Serge Noiraud"],
|
authors = [u"Serge Noiraud"],
|
||||||
@ -82,7 +87,7 @@ if OSMGPSMAP:
|
|||||||
description = _("A view showing all the event "
|
description = _("A view showing all the event "
|
||||||
"places of the database."),
|
"places of the database."),
|
||||||
version = '1.0',
|
version = '1.0',
|
||||||
gramps_target_version = '3.5',
|
gramps_target_version = MODULE_VERSION,
|
||||||
status = STABLE,
|
status = STABLE,
|
||||||
fname = 'geoevents.py',
|
fname = 'geoevents.py',
|
||||||
authors = [u"Serge Noiraud"],
|
authors = [u"Serge Noiraud"],
|
||||||
@ -99,7 +104,7 @@ if OSMGPSMAP:
|
|||||||
description = _("A view showing the places visited by "
|
description = _("A view showing the places visited by "
|
||||||
"one family during all their life."),
|
"one family during all their life."),
|
||||||
version = '1.0',
|
version = '1.0',
|
||||||
gramps_target_version = '3.5',
|
gramps_target_version = MODULE_VERSION,
|
||||||
status = STABLE,
|
status = STABLE,
|
||||||
fname = 'geofamily.py',
|
fname = 'geofamily.py',
|
||||||
authors = [u"Serge Noiraud"],
|
authors = [u"Serge Noiraud"],
|
||||||
@ -117,7 +122,7 @@ if OSMGPSMAP:
|
|||||||
"two persons during their life: "
|
"two persons during their life: "
|
||||||
"have these two people been able to meet?"),
|
"have these two people been able to meet?"),
|
||||||
version = '1.0.1',
|
version = '1.0.1',
|
||||||
gramps_target_version = '3.5',
|
gramps_target_version = MODULE_VERSION,
|
||||||
status = STABLE,
|
status = STABLE,
|
||||||
fname = 'geoclose.py',
|
fname = 'geoclose.py',
|
||||||
authors = [u"Serge Noiraud"],
|
authors = [u"Serge Noiraud"],
|
||||||
|
Loading…
Reference in New Issue
Block a user