Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 562fdbb06a | |||
| f83f4c8451 | |||
| 838f3adba7 | |||
| 7d15137109 | |||
| c210a14acc | |||
| 92c5cceea3 | |||
| 5eea9ca023 | |||
| 19bfd81a9b | |||
| 296d7557b7 | |||
| 3eea6dc8dc | |||
| d7200b028a | |||
| a79e8f8860 | |||
| fa60e78ee2 | |||
| 46979f512d | |||
| 1231c01b05 | |||
| bdf97fabd0 | |||
| a8a8b41210 | |||
| 1091c221ba |
+1
-1
@@ -5,7 +5,7 @@ dnl May need to run automake && aclocal first
|
||||
|
||||
AC_PREREQ(2.57)
|
||||
dnl NOTE: arg to macro below becomes the "VERSION"
|
||||
AC_INIT(gramps, 3.2.6, [gramps-bugs@lists.sourceforge.net])
|
||||
AC_INIT(gramps, 3.2.7, [gramps-bugs@lists.sourceforge.net])
|
||||
AC_CONFIG_SRCDIR(configure.in)
|
||||
AM_INIT_AUTOMAKE([1.6.3 foreign])
|
||||
|
||||
|
||||
@@ -18452,7 +18452,7 @@ msgstr "Ссылки"
|
||||
#. Individual List page message
|
||||
#: ../src/plugins/webreport/NarrativeWeb.py:2025
|
||||
msgid "This page contains an index of all the individuals in the database, sorted by their last names. Selecting the person’s name will take you to that person’s individual page."
|
||||
msgstr "Эта страница содержит список лмц из базы данных, отсортированный по фамилии. Выбор лица приведёт к странице этого лица."
|
||||
msgstr "Эта страница содержит список лиц из базы данных, отсортированный по фамилии. Выбор лица приведёт к странице этого лица."
|
||||
|
||||
#: ../src/plugins/webreport/NarrativeWeb.py:2217
|
||||
#, python-format
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ class DateEdit(object):
|
||||
# if text could not be parsed it is assumed invalid
|
||||
if self.date_obj.get_modifier() == Date.MOD_TEXTONLY:
|
||||
return ValidationError(_('Bad Date'))
|
||||
elif (self.date_obj.to_calendar(calendar_name=Date.CAL_GREGORIAN) >
|
||||
elif (self.date_obj.to_calendar(calendar_name=Date.CAL_GREGORIAN) >>
|
||||
NextYear()):
|
||||
return ValidationError(_('Date more than one year in the future'))
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/DateHandler
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_Date_bg.py\
|
||||
_Date_ca.py\
|
||||
_Date_cs.py\
|
||||
@@ -32,7 +30,7 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/DateHandler
|
||||
pkgpythondir = @pkgpythondir@/DateHandler
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/DateHandler
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -50,4 +48,4 @@ docs:
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
SUBDIRS = Rules SideBar
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_FilterComboBox.py \
|
||||
_FilterList.py \
|
||||
_FilterMenu.py \
|
||||
@@ -17,7 +17,6 @@ pkgdata_PYTHON = \
|
||||
_SearchFilter.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters
|
||||
pkgpythondir = @pkgpythondir@/Filters
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -26,4 +25,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Event level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Event
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Event
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_ChangedSince.py\
|
||||
_MatchesFilter.py\
|
||||
_EventPrivate.py\
|
||||
@@ -24,7 +24,7 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Event
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Event
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -33,4 +33,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Family level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Family
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Family
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_AllFamilies.py\
|
||||
_ChangedSince.py\
|
||||
_FamilyPrivate.py\
|
||||
@@ -38,7 +38,6 @@ pkgdata_PYTHON = \
|
||||
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Family
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Family
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -47,4 +46,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
SUBDIRS = Person Family Event Place Source MediaObject Repository Note
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_ChangedSinceBase.py\
|
||||
_Everything.py\
|
||||
_HasEventBase.py\
|
||||
@@ -29,7 +29,6 @@ pkgdata_PYTHON = \
|
||||
_HasMarkerBase.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -38,4 +37,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/MediaObject level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/MediaObject
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/MediaObject
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_AllMedia.py\
|
||||
_ChangedSince.py\
|
||||
_HasIdOf.py\
|
||||
@@ -17,7 +17,7 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/MediaObject
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/MediaObject
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -26,4 +26,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Note level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Note
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Note
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_AllNotes.py\
|
||||
_ChangedSince.py\
|
||||
_HasIdOf.py\
|
||||
@@ -17,7 +17,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Note
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Note
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -26,4 +25,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Person level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Person
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Person
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_ChangedSince.py\
|
||||
_Disconnected.py \
|
||||
_DeepRelationshipPathBetween.py \
|
||||
@@ -74,7 +74,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Person
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Person
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -83,4 +82,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Place level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Place
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Place
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_AllPlaces.py\
|
||||
_ChangedSince.py\
|
||||
_HasIdOf.py\
|
||||
@@ -21,7 +21,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Place
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Place
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -30,4 +29,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Media level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Repository
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Repository
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_AllRepos.py\
|
||||
_ChangedSince.py\
|
||||
_HasIdOf.py\
|
||||
@@ -16,7 +16,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Repository
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Repository
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -25,4 +24,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/Rules/Source level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Source
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/Rules/Source
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_ChangedSince.py\
|
||||
_MatchesFilter.py\
|
||||
_SourcePrivate.py\
|
||||
@@ -19,7 +19,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/Rules/Source
|
||||
pkgpythondir = @pkgpythondir@/Filters/Rules/Source
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -28,4 +27,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Filters/SideBar level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Filters/SideBar
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Filters/SideBar
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_EventSidebarFilter.py \
|
||||
_FamilySidebarFilter.py \
|
||||
__init__.py \
|
||||
@@ -15,7 +15,6 @@ pkgdata_PYTHON = \
|
||||
_NoteSidebarFilter.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Filters/SideBar
|
||||
pkgpythondir = @pkgpythondir@/Filters/SideBar
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -24,4 +23,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,16 +3,14 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/GrampsLocale
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/GrampsLocale
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_GrampsLocale.py\
|
||||
__init__.py
|
||||
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/GrampsLocale
|
||||
pkgpythondir = @pkgpythondir@/GrampsLocale
|
||||
|
||||
|
||||
dist_pkgdata_DATA =
|
||||
|
||||
@@ -23,4 +21,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/GrampsLogger
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_ErrorReportAssistant.py\
|
||||
_ErrorView.py\
|
||||
_GtkHandler.py\
|
||||
@@ -13,7 +11,7 @@ pkgdata_PYTHON = \
|
||||
_RotateHandler.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/GrampsLogger
|
||||
pkgpythondir = @pkgpythondir@/GrampsLogger
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/GrampsLogger
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -22,4 +20,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,16 +3,15 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Merge
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Merge
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
_MergePerson.py \
|
||||
_MergePlace.py \
|
||||
_MergeSource.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Merge
|
||||
pkgpythondir = @pkgpythondir@/Merge
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -21,4 +20,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/PluginUtils
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/PluginUtils
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py\
|
||||
_GuiOptions.py\
|
||||
_Options.py\
|
||||
@@ -23,4 +23,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/Report level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/ReportBase
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/ReportBase
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py\
|
||||
_Bibliography.py\
|
||||
_CommandLineReport.py\
|
||||
@@ -32,4 +32,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -223,7 +223,7 @@ class Bibliography(object):
|
||||
if ( self.mode & self.MODE_DATE ) == self.MODE_DATE:
|
||||
date1 = source_ref1.get_date_object()
|
||||
date2 = source_ref2.get_date_object()
|
||||
if date1.is_equal(date2):
|
||||
if not date1.is_equal(date2):
|
||||
return False
|
||||
if ( self.mode & self.MODE_CONF ) == self.MODE_CONF:
|
||||
conf1 = source_ref1.get_confidence_level()
|
||||
|
||||
@@ -129,7 +129,17 @@ def write_endnotes(bibliography, database, doc, printnotes=False):
|
||||
first = True
|
||||
reflines = ""
|
||||
for key, ref in ref_list:
|
||||
txt = "%s: %s" % (key, ref.get_page())
|
||||
datepresent = False
|
||||
date = ref.get_date_object()
|
||||
if date is not None and not date.is_empty():
|
||||
datepresent = True
|
||||
if datepresent:
|
||||
if ref.get_page():
|
||||
txt = "%s: %s - %s" % (key, ref.get_page(), str(date))
|
||||
else:
|
||||
txt = "%s: %s" % (key, str(date))
|
||||
else:
|
||||
txt = "%s: %s" % (key, ref.get_page())
|
||||
if first:
|
||||
reflines += txt
|
||||
first = False
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
# This is the src/Report level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/Simple
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/Simple
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
_SimpleDoc.py\
|
||||
_SimpleAccess.py\
|
||||
_SimpleTable.py\
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/Simple
|
||||
pkgpythondir = @pkgpythondir@/Simple
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -18,4 +17,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
+1
-2
@@ -252,8 +252,7 @@ def run_thumbnailer(mime_type, src_file, dest_file, size=const.THUMBSCALE):
|
||||
'%o' : dest_file,
|
||||
}
|
||||
cmdlist = [ sublist.get(x, x) for x in cmd.split() ]
|
||||
os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ)
|
||||
return True
|
||||
return os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ) == 0
|
||||
return False
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
+5
-5
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/cli
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/cli
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
arghandler.py \
|
||||
argparser.py \
|
||||
@@ -13,7 +13,7 @@ pkgdata_PYTHON = \
|
||||
grampscli.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/cli
|
||||
pkgpythondir = @pkgpythondir@/cli
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -22,7 +22,7 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
pylint:
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgdata_PYTHON) > pylint.out
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgpython_PYTHON) > pylint.out
|
||||
|
||||
+2
-2
@@ -42,10 +42,10 @@ from gettext import gettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
PROGRAM_NAME = "Gramps"
|
||||
if "@VERSIONSTRING@" == "@" + "VERSIONSTRING" + "@":
|
||||
VERSION = "3.2.6"
|
||||
VERSION = "3.2.7"
|
||||
else:
|
||||
VERSION = "@VERSIONSTRING@"
|
||||
VERSION_TUPLE = (3, 2, 6)
|
||||
VERSION_TUPLE = (3, 2, 7)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
+3
-4
@@ -12,15 +12,14 @@ SUBDIRS = \
|
||||
proxy \
|
||||
utils
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
ggettext.py \
|
||||
updatecallback.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen
|
||||
pkgpythondir = @pkgpythondir@/gen
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
@@ -30,4 +29,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/db
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/db
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
backup.py \
|
||||
base.py \
|
||||
@@ -20,7 +20,6 @@ pkgdata_PYTHON = \
|
||||
write.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/db
|
||||
pkgpythondir = @pkgpythondir@/gen/db
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
@@ -30,4 +29,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -59,8 +59,8 @@ DBMODE_W = "w" # Full Reaw/Write access
|
||||
DBPAGE = 16384 # Size of the pages used to hold items in the database
|
||||
DBMODE = 0666 # Unix mode for database creation
|
||||
DBCACHE = 0x4000000 # Size of the shared memory buffer pool
|
||||
DBLOCKS = 25000 # Maximum number of locks supported
|
||||
DBOBJECTS = 25000 # Maximum number of simultaneously locked objects
|
||||
DBLOCKS = 100000 # Maximum number of locks supported
|
||||
DBOBJECTS = 100000 # Maximum number of simultaneously locked objects
|
||||
DBUNDO = 1000 # Maximum size of undo buffer
|
||||
|
||||
from bsddb.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY
|
||||
|
||||
@@ -1016,6 +1016,11 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
||||
return
|
||||
self.env.txn_checkpoint()
|
||||
|
||||
lockstats = self.env.lock_stat()
|
||||
_LOG.debug("lock occupancy: %d%%, locked object occupancy: %d%%" % (
|
||||
round(lockstats['maxnlocks']*100/lockstats['maxlocks']),
|
||||
round(lockstats['maxnobjects']*100/lockstats['maxobjects'])))
|
||||
|
||||
self.__close_metadata()
|
||||
self.name_group.close()
|
||||
self.surnames.close()
|
||||
|
||||
@@ -3,15 +3,13 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/display
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/display
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
name.py\
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/display
|
||||
pkgpythondir = @pkgpythondir@/gen/display
|
||||
|
||||
|
||||
dist_pkgdata_DATA =
|
||||
|
||||
@@ -22,4 +20,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/lib
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/lib
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
addressbase.py \
|
||||
address.py \
|
||||
attrbase.py \
|
||||
@@ -66,7 +66,6 @@ pkgdata_PYTHON = \
|
||||
witness.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/lib
|
||||
pkgpythondir = @pkgpythondir@/gen/lib
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -75,7 +74,7 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
pylint:
|
||||
pylint --disable-msg=W0403,C0103 $(pkgdata_PYTHON)
|
||||
pylint --disable-msg=W0403,C0103 $(pkgpython_PYTHON)
|
||||
|
||||
+1
-1
@@ -1709,7 +1709,7 @@ def NextYear():
|
||||
import time
|
||||
next_year = Date()
|
||||
thisyear = time.localtime(time.time())
|
||||
next_year.set_yr_mon_day(thisyear[0]+1, thisyear[1], thisyear[3])
|
||||
next_year.set_yr_mon_day(thisyear[0]+1, thisyear[1], thisyear[2])
|
||||
return next_year
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -3,16 +3,15 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/mime
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/mime
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py\
|
||||
_gnomemime.py\
|
||||
_winmime.py\
|
||||
_pythonmime.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/mime
|
||||
pkgpythondir = @pkgpythondir@/gen/mime
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -21,4 +20,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -8,9 +8,9 @@ SUBDIRS = \
|
||||
docgen\
|
||||
menu
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/plug
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/plug
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
_docgenplugin.py \
|
||||
_export.py \
|
||||
@@ -22,8 +22,6 @@ pkgdata_PYTHON = \
|
||||
utils.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/plug
|
||||
pkgpythondir = @pkgpythondir@/gen/plug
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -32,4 +30,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,16 +3,14 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/plug/docbackend
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/plug/docbackend
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
cairobackend.py \
|
||||
docbackend.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/plug/docbackend
|
||||
pkgpythondir = @pkgpythondir@/gen/plug/docbackend
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -21,4 +19,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/plug/docgen
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
basedoc.py \
|
||||
drawdoc.py \
|
||||
@@ -20,7 +20,7 @@ pkgdata_PYTHON = \
|
||||
textdoc.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/plug/docgen
|
||||
pkgpythondir = @pkgpythondir@/gen/plug/docgen
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/plug/docgen
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
@@ -30,4 +30,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/plug/menu
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/plug/menu
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
_boolean.py \
|
||||
_booleanlist.py \
|
||||
@@ -28,8 +28,6 @@ pkgdata_PYTHON = \
|
||||
_text.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/plug/menu
|
||||
pkgpythondir = @pkgpythondir@/gen/plug/menu
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -38,4 +36,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/proxy
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/proxy
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
filter.py \
|
||||
living.py \
|
||||
@@ -14,8 +14,6 @@ pkgdata_PYTHON = \
|
||||
proxybase.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/proxy
|
||||
pkgpythondir = @pkgpythondir@/gen/proxy
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -24,4 +22,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gen/utils
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gen/utils
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
callback.py \
|
||||
callman.py \
|
||||
@@ -13,8 +13,6 @@ pkgdata_PYTHON = \
|
||||
fallback.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gen/utils
|
||||
pkgpythondir = @pkgpythondir@/gen/utils
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -23,4 +21,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
+3
-5
@@ -9,9 +9,9 @@ SUBDIRS = \
|
||||
views \
|
||||
widgets
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
columnorder.py \
|
||||
configure.py \
|
||||
@@ -25,8 +25,6 @@ pkgdata_PYTHON = \
|
||||
viewmanager.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui
|
||||
pkgpythondir = @pkgpythondir@/gui
|
||||
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -35,4 +33,4 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
SUBDIRS = \
|
||||
displaytabs
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/editors
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/editors
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
addmedia.py\
|
||||
__init__.py\
|
||||
editaddress.py \
|
||||
@@ -37,7 +37,6 @@ pkgdata_PYTHON = \
|
||||
objectentries.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/editors
|
||||
pkgpythondir = @pkgpythondir@/gui/editors
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -46,4 +45,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# This is the src/gui/editors/displaytabs level Makefile for Gramps
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/editors/displaytabs
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/editors/displaytabs
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
addrembedlist.py \
|
||||
addressmodel.py \
|
||||
attrembedlist.py \
|
||||
@@ -47,7 +47,6 @@ pkgdata_PYTHON = \
|
||||
__init__.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/editors/displaytabs
|
||||
pkgpythondir = @pkgpythondir@/gui/editors/displaytabs
|
||||
|
||||
# clean up all the byte-compiled files
|
||||
MOSTLYcLEANFILES = *pyc *pyo
|
||||
@@ -56,4 +55,4 @@ GRAMPS_PY_MODPATH = "../../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -249,8 +249,7 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
||||
except Errors.WindowActiveError:
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(_("Cannot share this reference"),
|
||||
self.__blocked_text() )
|
||||
pass
|
||||
self.__blocked_text())
|
||||
|
||||
def edit_button_clicked(self, obj):
|
||||
ref = self.get_selected()
|
||||
@@ -263,7 +262,7 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
||||
except Errors.WindowActiveError:
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(_("Cannot edit this reference"),
|
||||
self.__blocked_text() )
|
||||
self.__blocked_text())
|
||||
elif ref and ref[0] != self._WORKGROUP:
|
||||
#bring up family editor
|
||||
key = self._groups[ref[0]][0]
|
||||
|
||||
@@ -282,6 +282,16 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
||||
self.changed = True
|
||||
self.rebuild()
|
||||
|
||||
def __blocked_text(self):
|
||||
"""
|
||||
Return the common text used when mediaref cannot be edited
|
||||
"""
|
||||
return _("This media reference cannot be edited at this time. "
|
||||
"Either the associated media object is already being "
|
||||
"edited or another media reference that is associated with "
|
||||
"the same media object is being edited.\n\nTo edit this "
|
||||
"media reference, you need to close the media object.")
|
||||
|
||||
def share_button_clicked(self, obj):
|
||||
"""
|
||||
Function called when the Share button is clicked.
|
||||
@@ -300,7 +310,9 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
||||
EditMediaRef(self.dbstate, self.uistate, self.track,
|
||||
src, sref, self.add_callback)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(_("Cannot share this reference"),
|
||||
self.__blocked_text())
|
||||
|
||||
def del_button_clicked(self, obj):
|
||||
ref = self.get_selected()
|
||||
@@ -318,7 +330,9 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
||||
EditMediaRef(self.dbstate, self.uistate, self.track,
|
||||
obj, ref, None)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(_("Cannot edit this reference"),
|
||||
self.__blocked_text())
|
||||
|
||||
def media_delete(self, del_media_handle_list):
|
||||
"""
|
||||
|
||||
@@ -113,6 +113,16 @@ class SourceEmbedList(EmbeddedList, DbGUIElement):
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
|
||||
def __blocked_text(self):
|
||||
"""
|
||||
Return the common text used when sourceref cannot be edited
|
||||
"""
|
||||
return _("This source reference cannot be edited at this time. "
|
||||
"Either the associated source is already being edited "
|
||||
"or another source reference that is associated with "
|
||||
"the same source is being edited.\n\nTo edit this "
|
||||
"source reference, you need to close the source.")
|
||||
|
||||
def share_button_clicked(self, obj):
|
||||
from gui.editors import EditSourceRef
|
||||
SelectSource = SelectorFactory('Source')
|
||||
@@ -130,7 +140,9 @@ class SourceEmbedList(EmbeddedList, DbGUIElement):
|
||||
self.object_added)
|
||||
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(_("Cannot share this reference"),
|
||||
self.__blocked_text())
|
||||
|
||||
def edit_button_clicked(self, obj):
|
||||
from gui.editors import EditSourceRef
|
||||
@@ -143,14 +155,8 @@ class SourceEmbedList(EmbeddedList, DbGUIElement):
|
||||
src, sref, self.object_edited)
|
||||
except Errors.WindowActiveError:
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(
|
||||
_("Cannot edit this reference"),
|
||||
_("This source reference cannot be edited at this time. "
|
||||
"Either the associated source is already being edited "
|
||||
"or another source reference that is associated with "
|
||||
"the same source is being edited.\n\nTo edit this "
|
||||
"source reference, you need to close the source.")
|
||||
)
|
||||
WarningDialog(_("Cannot edit this reference"),
|
||||
self.__blocked_text())
|
||||
|
||||
def object_added(self, reference, primary):
|
||||
"""
|
||||
|
||||
@@ -911,15 +911,13 @@ class EditFamily(EditPrimary):
|
||||
if birth:
|
||||
#if event changes it view needs to update
|
||||
self.callman.register_handles({'event': [birth.get_handle()]})
|
||||
if birth and birth.get_type() == gen.lib.EventType.BAPTISM:
|
||||
birth_label.set_label(_("Baptism:"))
|
||||
birth_label.set_label("%s:" % birth.get_type())
|
||||
|
||||
death = get_death_or_fallback(db, person)
|
||||
if death:
|
||||
#if event changes it view needs to update
|
||||
self.callman.register_handles({'event': [death.get_handle()]})
|
||||
if death and death.get_type() == gen.lib.EventType.BURIAL:
|
||||
death_label.set_label(_("Burial:"))
|
||||
death_label.set_label("%s:" % death.get_type())
|
||||
|
||||
btn_edit.set_tooltip_text(_('Edit %s') % name)
|
||||
btn_index.hide()
|
||||
|
||||
@@ -1079,6 +1079,8 @@ class FilterEditor(ManagedWindow.ManagedWindow):
|
||||
filters = self.filterdb.get_filters(space)
|
||||
name = gfilter.get_name()
|
||||
for the_filter in filters:
|
||||
if the_filter.get_name() == name:
|
||||
continue
|
||||
for rule in the_filter.get_rules():
|
||||
values = rule.values()
|
||||
if issubclass(rule.__class__, MatchesFilterBase) \
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/selectors
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/selectors
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
baseselector.py \
|
||||
selectevent.py \
|
||||
@@ -20,7 +20,6 @@ pkgdata_PYTHON = \
|
||||
selectorfactory.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/selectors
|
||||
pkgpythondir = @pkgpythondir@/gui/selectors
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -29,4 +28,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -6,16 +6,15 @@
|
||||
SUBDIRS = \
|
||||
treemodels
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/views
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/views
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
listview.py \
|
||||
navigationview.py \
|
||||
pageview.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/views
|
||||
pkgpythondir = @pkgpythondir@/gui/views
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -24,7 +23,7 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
pylint:
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgdata_PYTHON) > pylint.out
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgpython_PYTHON) > pylint.out
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/views/treemodels
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/views/treemodels
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
eventmodel.py \
|
||||
familymodel.py \
|
||||
@@ -19,7 +19,6 @@ pkgdata_PYTHON = \
|
||||
treebasemodel.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/views/treemodels
|
||||
pkgpythondir = @pkgpythondir@/gui/views/treemodels
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -28,7 +27,7 @@ GRAMPS_PY_MODPATH = "../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
pylint:
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgdata_PYTHON) > pylint.out
|
||||
PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgpython_PYTHON) > pylint.out
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/gui/widgets
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/gui/widgets
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
buttons.py \
|
||||
expandcollapsearrow.py \
|
||||
@@ -27,7 +27,6 @@ pkgdata_PYTHON = \
|
||||
valuetoolitem.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/gui/widgets
|
||||
pkgpythondir = @pkgpythondir@/gui/widgets
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -36,5 +35,5 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
|
||||
@@ -21,14 +21,14 @@ SUBDIRS = \
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
bookreport.gpr.py\
|
||||
BookReport.py\
|
||||
records.gpr.py\
|
||||
Records.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins
|
||||
pkgpythondir = @pkgpythondir@/plugins
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins
|
||||
|
||||
GLADEFILES = \
|
||||
bookreport.glade
|
||||
@@ -46,4 +46,4 @@ GRAMPS_PY_MODPATH = "../:../docgen"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
# This is the src/plugins/docgen level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/docgen
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
AsciiDoc.py \
|
||||
docgen.gpr.py\
|
||||
GtkPrint.py \
|
||||
HtmlDoc.py \
|
||||
LaTeXDoc.py \
|
||||
ODFDoc.py \
|
||||
PdfDoc.py \
|
||||
PSDrawDoc.py \
|
||||
RTFDoc.py \
|
||||
SvgDrawDoc.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/docgen
|
||||
pkgpythondir = @pkgpythondir@/plugins/docgen
|
||||
|
||||
GLADEFILES = \
|
||||
gtkprint.glade
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/docgen level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/docgen
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
AsciiDoc.py \
|
||||
docgen.gpr.py\
|
||||
GtkPrint.py \
|
||||
HtmlDoc.py \
|
||||
LaTeXDoc.py \
|
||||
ODFDoc.py \
|
||||
PdfDoc.py \
|
||||
PSDrawDoc.py \
|
||||
RTFDoc.py \
|
||||
SvgDrawDoc.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/docgen
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/docgen
|
||||
|
||||
GLADEFILES = \
|
||||
gtkprint.glade
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,27 +1,26 @@
|
||||
# This is the src/plugins/drawreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/drawreport
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
AncestorTree.py \
|
||||
Calendar.py\
|
||||
DescendTree.py \
|
||||
drawplugins.gpr.py\
|
||||
FanChart.py \
|
||||
StatisticsChart.py \
|
||||
TimeLine.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/drawreport
|
||||
pkgpythondir = @pkgpythondir@/plugins/drawreport
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/drawreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/drawreport
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
AncestorTree.py \
|
||||
Calendar.py\
|
||||
DescendTree.py \
|
||||
drawplugins.gpr.py\
|
||||
FanChart.py \
|
||||
StatisticsChart.py \
|
||||
TimeLine.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/drawreport
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1403,7 +1403,7 @@ class GedcomWriter(UpdateCallback):
|
||||
"""
|
||||
if place is None: return
|
||||
place_name = place.get_title()
|
||||
self.__writeln(level, "PLAC", place_name.replace('\r', ' '))
|
||||
self.__writeln(level, "PLAC", place_name.replace('\r', ' '), limit=120)
|
||||
longitude = place.get_longitude()
|
||||
latitude = place.get_latitude()
|
||||
if longitude and latitude:
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
# This is the src/plugins/export level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/export
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
export.gpr.py \
|
||||
ExportCsv.py \
|
||||
ExportFtree.py \
|
||||
ExportGedcom.py \
|
||||
ExportGeneWeb.py \
|
||||
ExportPkg.py \
|
||||
ExportVCalendar.py \
|
||||
ExportVCard.py \
|
||||
ExportXml.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/export
|
||||
pkgpythondir = @pkgpythondir@/plugins/export
|
||||
|
||||
GLADEFILES = \
|
||||
exportcsv.glade \
|
||||
exportftree.glade \
|
||||
exportgeneweb.glade \
|
||||
exportvcalendar.glade \
|
||||
exportvcard.glade
|
||||
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/export level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/export
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
export.gpr.py \
|
||||
ExportCsv.py \
|
||||
ExportFtree.py \
|
||||
ExportGedcom.py \
|
||||
ExportGeneWeb.py \
|
||||
ExportPkg.py \
|
||||
ExportVCalendar.py \
|
||||
ExportVCard.py \
|
||||
ExportXml.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/export
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/export
|
||||
|
||||
GLADEFILES = \
|
||||
exportcsv.glade \
|
||||
exportftree.glade \
|
||||
exportgeneweb.glade \
|
||||
exportvcalendar.glade \
|
||||
exportvcard.glade
|
||||
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
|
||||
@@ -1,40 +1,39 @@
|
||||
# This is the src/plugins/drawreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/gramplet
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
AgeOnDateGramplet.py \
|
||||
AgeStats.py \
|
||||
AttributesGramplet.py \
|
||||
CalendarGramplet.py \
|
||||
DescendGramplet.py \
|
||||
FanChartGramplet.py \
|
||||
FaqGramplet.py \
|
||||
GivenNameGramplet.py \
|
||||
gramplet.gpr.py \
|
||||
PedigreeGramplet.py \
|
||||
PluginManagerGramplet.py\
|
||||
QuickViewGramplet.py \
|
||||
RelativeGramplet.py \
|
||||
SessionLogGramplet.py \
|
||||
StatsGramplet.py \
|
||||
SurnameCloudGramplet.py \
|
||||
ToDoGramplet.py \
|
||||
TopSurnamesGramplet.py \
|
||||
WelcomeGramplet.py \
|
||||
WhatsNext.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/gramplet
|
||||
pkgpythondir = @pkgpythondir@/plugins/gramplet
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/drawreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/gramplet
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
AgeOnDateGramplet.py \
|
||||
AgeStats.py \
|
||||
AttributesGramplet.py \
|
||||
CalendarGramplet.py \
|
||||
DescendGramplet.py \
|
||||
FanChartGramplet.py \
|
||||
FaqGramplet.py \
|
||||
GivenNameGramplet.py \
|
||||
gramplet.gpr.py \
|
||||
PedigreeGramplet.py \
|
||||
PluginManagerGramplet.py\
|
||||
QuickViewGramplet.py \
|
||||
RelativeGramplet.py \
|
||||
SessionLogGramplet.py \
|
||||
StatsGramplet.py \
|
||||
SurnameCloudGramplet.py \
|
||||
ToDoGramplet.py \
|
||||
TopSurnamesGramplet.py \
|
||||
WelcomeGramplet.py \
|
||||
WhatsNext.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/gramplet
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
# This is the src/plugins/graph level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/graph
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
graphplugins.gpr.py\
|
||||
GVFamilyLines.py \
|
||||
GVHourGlass.py \
|
||||
GVRelGraph.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/graph
|
||||
pkgpythondir = @pkgpythondir@/plugins/graph
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/graph level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/graph
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
graphplugins.gpr.py\
|
||||
GVFamilyLines.py \
|
||||
GVHourGlass.py \
|
||||
GVRelGraph.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/graph
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -109,7 +109,7 @@ def _read_mem(bname):
|
||||
fname = bname + '.MEM'
|
||||
else:
|
||||
fname = bname + '.mem'
|
||||
f = open(fname)
|
||||
f = open(fname, "rb")
|
||||
recfmt = "i28s"
|
||||
reclen = struct.calcsize( recfmt )
|
||||
#print "# reclen = %d" % reclen
|
||||
@@ -130,7 +130,7 @@ def _read_recs(table, bname):
|
||||
fname = bname + table.fileext
|
||||
else:
|
||||
fname = bname + table.fileext.lower()
|
||||
f = open(fname)
|
||||
f = open(fname, "rb")
|
||||
recfmt = table.recfmt
|
||||
log.info("# %s - recfmt = %s" % (table['name1'], recfmt))
|
||||
reclen = struct.calcsize( recfmt )
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
# This is the src/plugins/import level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/import
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
import.gpr.py \
|
||||
ImportCsv.py \
|
||||
ImportGedcom.py \
|
||||
ImportGeneWeb.py \
|
||||
ImportGpkg.py \
|
||||
ImportGrdb.py \
|
||||
ImportProGen.py \
|
||||
ImportVCard.py \
|
||||
ImportXml.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/import
|
||||
pkgpythondir = @pkgpythondir@/plugins/import
|
||||
|
||||
GLADEFILES = \
|
||||
importgedcom.glade
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/import level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/import
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
import.gpr.py \
|
||||
ImportCsv.py \
|
||||
ImportGedcom.py \
|
||||
ImportGeneWeb.py \
|
||||
ImportGpkg.py \
|
||||
ImportGrdb.py \
|
||||
ImportProGen.py \
|
||||
ImportVCard.py \
|
||||
ImportXml.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/import
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/import
|
||||
|
||||
GLADEFILES = \
|
||||
importgedcom.glade
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/lib
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
libcairodoc.py\
|
||||
libformatting.py\
|
||||
libgedcom.py\
|
||||
@@ -25,7 +25,7 @@ pkgdata_PYTHON = \
|
||||
libtranslate.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/lib
|
||||
pkgpythondir = @pkgpythondir@/plugins/lib
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/lib
|
||||
|
||||
GLADEFILES =
|
||||
|
||||
@@ -43,4 +43,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -5566,14 +5566,14 @@ class GedcomParser(UpdateCallback):
|
||||
LOG.debug('Error: obj is None')
|
||||
|
||||
def __parse_inline_note(self, line, level):
|
||||
if not line.data:
|
||||
gid = self.nid_map[line.token_text]
|
||||
handle = self.nid2id.get(gid)
|
||||
if not line.data and handle is None:
|
||||
msg = _("Line %d: empty note was ignored.") % line.line
|
||||
self.__warn(msg)
|
||||
self.__skip_subordinate_levels(level)
|
||||
else:
|
||||
new_note = gen.lib.Note(line.data)
|
||||
gid = self.nid_map[line.token_text]
|
||||
handle = self.nid2id.get(gid)
|
||||
new_note.set_handle(handle)
|
||||
new_note.set_gramps_id(gid)
|
||||
self.dbase.add_note(new_note, self.trans)
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is the src/plugins/mapservices level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/mapservices
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
googlemap.py\
|
||||
mapservice.gpr.py\
|
||||
openstreetmap.py\
|
||||
eniroswedenmap.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/mapservices
|
||||
pkgpythondir = @pkgpythondir@/plugins/mapservices
|
||||
|
||||
GLADEFILES =
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/mapservices level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/mapservices
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
googlemap.py\
|
||||
mapservice.gpr.py\
|
||||
openstreetmap.py\
|
||||
eniroswedenmap.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/mapservices
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/mapservices
|
||||
|
||||
GLADEFILES =
|
||||
|
||||
GRAPHICS =
|
||||
|
||||
DATAFILES =
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) $(DATAFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
# This is the src/plugins/quickview level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/quickview
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
AgeOnDate.py \
|
||||
all_events.py \
|
||||
all_relations.py \
|
||||
AttributeMatch.py \
|
||||
FilterByName.py \
|
||||
lineage.py \
|
||||
OnThisDay.py \
|
||||
quickview.gpr.py \
|
||||
References.py \
|
||||
Reporef.py \
|
||||
SameSurnames.py\
|
||||
siblings.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/quickview
|
||||
pkgpythondir = @pkgpythondir@/plugins/quickview
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/quickview level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/quickview
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
AgeOnDate.py \
|
||||
all_events.py \
|
||||
all_relations.py \
|
||||
AttributeMatch.py \
|
||||
FilterByName.py \
|
||||
lineage.py \
|
||||
OnThisDay.py \
|
||||
quickview.gpr.py \
|
||||
References.py \
|
||||
Reporef.py \
|
||||
SameSurnames.py\
|
||||
siblings.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/quickview
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/quickview
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
+36
-36
@@ -1,38 +1,38 @@
|
||||
# This is the src/plugins/rel level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/rel
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
relplugins.gpr.py\
|
||||
rel_cs.py\
|
||||
rel_da.py\
|
||||
rel_de.py\
|
||||
rel_es.py\
|
||||
rel_fi.py\
|
||||
rel_fr.py\
|
||||
# This is the src/plugins/rel level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/rel
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
relplugins.gpr.py\
|
||||
rel_cs.py\
|
||||
rel_da.py\
|
||||
rel_de.py\
|
||||
rel_es.py\
|
||||
rel_fi.py\
|
||||
rel_fr.py\
|
||||
rel_hu.py\
|
||||
rel_hr.py\
|
||||
rel_it.py\
|
||||
rel_nl.py\
|
||||
rel_no.py\
|
||||
rel_pl.py\
|
||||
rel_pt.py\
|
||||
rel_ru.py\
|
||||
rel_hr.py\
|
||||
rel_it.py\
|
||||
rel_nl.py\
|
||||
rel_no.py\
|
||||
rel_pl.py\
|
||||
rel_pt.py\
|
||||
rel_ru.py\
|
||||
rel_sk.py\
|
||||
rel_sl.py\
|
||||
rel_sv.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/rel
|
||||
pkgpythondir = @pkgpythondir@/plugins/rel
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
rel_sl.py\
|
||||
rel_sv.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/rel
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/rel
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -144,7 +144,7 @@ class DetAncestorReport(Report):
|
||||
empty_date, empty_place,
|
||||
get_endnote_numbers=self.endnotes)
|
||||
|
||||
self.bibli = Bibliography(Bibliography.MODE_PAGE)
|
||||
self.bibli = Bibliography(Bibliography.MODE_DATE|Bibliography.MODE_PAGE)
|
||||
|
||||
def apply_filter(self, person_handle, index):
|
||||
if (not person_handle) or (index >= 2**self.max_generations):
|
||||
|
||||
@@ -155,7 +155,7 @@ class DetDescendantReport(Report):
|
||||
empty_date, empty_place,
|
||||
get_endnote_numbers=self.endnotes)
|
||||
|
||||
self.bibli = Bibliography(Bibliography.MODE_PAGE)
|
||||
self.bibli = Bibliography(Bibliography.MODE_DATE|Bibliography.MODE_PAGE)
|
||||
|
||||
def apply_henry_filter(self,person_handle, index, pid, cur_gen=1):
|
||||
if (not person_handle) or (cur_gen > self.max_generations):
|
||||
|
||||
@@ -522,7 +522,7 @@ class IndivCompleteReport(Report):
|
||||
def write_person(self, count):
|
||||
if count != 0:
|
||||
self.doc.page_break()
|
||||
self.bibli = Bibliography(Bibliography.MODE_PAGE)
|
||||
self.bibli = Bibliography(Bibliography.MODE_DATE|Bibliography.MODE_PAGE)
|
||||
|
||||
media_list = self.person.get_media_list()
|
||||
name = _nd.display(self.person)
|
||||
|
||||
@@ -1,36 +1,35 @@
|
||||
# This is the src/plugins/textreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/textreport
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
AncestorReport.py\
|
||||
BirthdayReport.py\
|
||||
CustomBookText.py\
|
||||
DescendReport.py\
|
||||
DetAncestralReport.py\
|
||||
DetDescendantReport.py\
|
||||
EndOfLineReport.py\
|
||||
FamilyGroup.py\
|
||||
IndivComplete.py\
|
||||
KinshipReport.py\
|
||||
MarkerReport.py\
|
||||
NumberOfAncestorsReport.py\
|
||||
PlaceReport.py\
|
||||
SimpleBookTitle.py\
|
||||
Summary.py\
|
||||
textplugins.gpr.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/textreport
|
||||
pkgpythondir = @pkgpythondir@/plugins/textreport
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/textreport level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/textreport
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
AncestorReport.py\
|
||||
BirthdayReport.py\
|
||||
CustomBookText.py\
|
||||
DescendReport.py\
|
||||
DetAncestralReport.py\
|
||||
DetDescendantReport.py\
|
||||
EndOfLineReport.py\
|
||||
FamilyGroup.py\
|
||||
IndivComplete.py\
|
||||
KinshipReport.py\
|
||||
MarkerReport.py\
|
||||
NumberOfAncestorsReport.py\
|
||||
PlaceReport.py\
|
||||
SimpleBookTitle.py\
|
||||
Summary.py\
|
||||
textplugins.gpr.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/textreport
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,66 +1,66 @@
|
||||
# This is the src/plugins/tool level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/tool
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
ChangeNames.py \
|
||||
ChangeTypes.py \
|
||||
Check.py \
|
||||
Desbrowser.py \
|
||||
Eval.py \
|
||||
EventCmp.py \
|
||||
EventNames.py \
|
||||
ExtractCity.py \
|
||||
FindDupes.py \
|
||||
Leak.py \
|
||||
MediaManager.py \
|
||||
NotRelated.py \
|
||||
OwnerEditor.py \
|
||||
PatchNames.py \
|
||||
Rebuild.py \
|
||||
RebuildRefMap.py \
|
||||
RelCalc.py \
|
||||
RemoveUnused.py \
|
||||
ReorderIds.py \
|
||||
SortEvents.py \
|
||||
SoundGen.py \
|
||||
tools.gpr.py \
|
||||
Verify.py
|
||||
# DumpGenderStats.py \
|
||||
# PHPGedViewConnector.py \
|
||||
# TestcaseGenerator.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/tool
|
||||
pkgpythondir = @pkgpythondir@/plugins/tool
|
||||
|
||||
GLADEFILES = \
|
||||
changenames.glade \
|
||||
changetypes.glade \
|
||||
check.glade \
|
||||
desbrowser.glade \
|
||||
eval.glade \
|
||||
eventcmp.glade \
|
||||
finddupes.glade \
|
||||
leak.glade \
|
||||
notrelated.glade \
|
||||
ownereditor.glade \
|
||||
patchnames.glade \
|
||||
phpgedview.glade \
|
||||
relcalc.glade \
|
||||
removeunused.glade \
|
||||
soundgen.glade \
|
||||
verify.glade
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/tool level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/tool
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
ChangeNames.py \
|
||||
ChangeTypes.py \
|
||||
Check.py \
|
||||
Desbrowser.py \
|
||||
Eval.py \
|
||||
EventCmp.py \
|
||||
EventNames.py \
|
||||
ExtractCity.py \
|
||||
FindDupes.py \
|
||||
Leak.py \
|
||||
MediaManager.py \
|
||||
NotRelated.py \
|
||||
OwnerEditor.py \
|
||||
PatchNames.py \
|
||||
Rebuild.py \
|
||||
RebuildRefMap.py \
|
||||
RelCalc.py \
|
||||
RemoveUnused.py \
|
||||
ReorderIds.py \
|
||||
SortEvents.py \
|
||||
SoundGen.py \
|
||||
tools.gpr.py \
|
||||
Verify.py
|
||||
# DumpGenderStats.py \
|
||||
# PHPGedViewConnector.py \
|
||||
# TestcaseGenerator.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/tool
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/tool
|
||||
|
||||
GLADEFILES = \
|
||||
changenames.glade \
|
||||
changetypes.glade \
|
||||
check.glade \
|
||||
desbrowser.glade \
|
||||
eval.glade \
|
||||
eventcmp.glade \
|
||||
finddupes.glade \
|
||||
leak.glade \
|
||||
notrelated.glade \
|
||||
ownereditor.glade \
|
||||
patchnames.glade \
|
||||
phpgedview.glade \
|
||||
relcalc.glade \
|
||||
removeunused.glade \
|
||||
soundgen.glade \
|
||||
verify.glade
|
||||
|
||||
dist_pkgdata_DATA = $(GLADEFILES)
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -1,40 +1,39 @@
|
||||
# This is the src/plugins/quickview level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/view
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
eventview.py \
|
||||
familyview.py \
|
||||
fanchartview.gpr.py \
|
||||
fanchartview.py \
|
||||
geoview.py \
|
||||
geoview.gpr.py \
|
||||
grampletview.py \
|
||||
htmlrenderer.py \
|
||||
mediaview.py \
|
||||
noteview.py \
|
||||
pedigreeview.py \
|
||||
personlistview.py \
|
||||
persontreeview.py \
|
||||
placelistview.py \
|
||||
placetreeview.py \
|
||||
placetreeview.gpr.py \
|
||||
relview.py \
|
||||
repoview.py \
|
||||
sourceview.py \
|
||||
view.gpr.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/view
|
||||
pkgpythondir = @pkgpythondir@/plugins/view
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
# This is the src/plugins/quickview level Makefile for Gramps
|
||||
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/view
|
||||
|
||||
pkgpython_PYTHON = \
|
||||
eventview.py \
|
||||
familyview.py \
|
||||
fanchartview.gpr.py \
|
||||
fanchartview.py \
|
||||
geoview.py \
|
||||
geoview.gpr.py \
|
||||
grampletview.py \
|
||||
htmlrenderer.py \
|
||||
mediaview.py \
|
||||
noteview.py \
|
||||
pedigreeview.py \
|
||||
personlistview.py \
|
||||
persontreeview.py \
|
||||
placelistview.py \
|
||||
placetreeview.py \
|
||||
placetreeview.gpr.py \
|
||||
relview.py \
|
||||
repoview.py \
|
||||
sourceview.py \
|
||||
view.gpr.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/view
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
|
||||
GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -3,15 +3,14 @@
|
||||
# but that is not necessarily portable.
|
||||
# If not using GNU make, then list all .py files individually
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@/plugins/webreport
|
||||
pkgpythondir = $(datadir)/@PACKAGE@/plugins/webreport
|
||||
|
||||
pkgdata_PYTHON = \
|
||||
pkgpython_PYTHON = \
|
||||
NarrativeWeb.py\
|
||||
WebCal.py\
|
||||
webplugins.gpr.py
|
||||
|
||||
pkgpyexecdir = @pkgpyexecdir@/plugins/webreport
|
||||
pkgpythondir = @pkgpythondir@/plugins/webreport
|
||||
|
||||
# Clean up all the byte-compiled files
|
||||
MOSTLYCLEANFILES = *pyc *pyo
|
||||
@@ -20,4 +19,4 @@ GRAMPS_PY_MODPATH = "../../"
|
||||
|
||||
pycheck:
|
||||
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||
pychecker $(pkgdata_PYTHON));
|
||||
pychecker $(pkgpython_PYTHON));
|
||||
|
||||
@@ -2943,7 +2943,7 @@ class MediaPage(BasePage):
|
||||
self.report.copy_file(thmb_path, npath)
|
||||
path = npath
|
||||
os.unlink(thmb_path)
|
||||
except IOError:
|
||||
except EnvironmentError:
|
||||
path = os.path.join("images", "document.png")
|
||||
else:
|
||||
path = os.path.join("images", "document.png")
|
||||
@@ -4104,7 +4104,7 @@ class IndividualPage(BasePage):
|
||||
ol += Html("li", self.name, class_ = "thisperson", inline = True)
|
||||
family = self.pedigree_family()
|
||||
if family:
|
||||
ol += Html("ol", family, class_ = "spouselist")
|
||||
ol += Html("ol", class_="spouselist") + family
|
||||
return ol
|
||||
|
||||
# End of helper functions
|
||||
|
||||
Reference in New Issue
Block a user