Commit Graph

738 Commits

Author SHA1 Message Date
Michiel Nauta
32b5905aea 5368: Loading familytree with downgraded Berkeley db should generate expressive error
svn: r18467
2011-11-20 09:33:31 +00:00
Michiel Nauta
a7ce1af962 5291: JPG is not imported
svn: r18457
2011-11-16 17:58:58 +00:00
Tim G L Lyons
4a69d45fe6 Upgraded Source and Citation reference Quick Views to work with citations (actually, for citationtreeview, this is a source_or_citation reference, to avoid having to change the way listview calls the pop up menu items).
Also minimal changes to SimpleAccess and SimpleTable to support these references views.

svn: r18447
2011-11-15 12:08:43 +00:00
Tim G L Lyons
f8f510d5f1 Delete remove_source_references and replace_source_references as they are no longer needed.
Rename remove_citation to remove_citation_refs and make it apply to a citation_handle_list.
Updated tool/Check.py to change check_source_references into check_citation_references


svn: r18433
2011-11-11 17:12:43 +00:00
Tim G L Lyons
b4f434357f Remove has_source_reference because it is only used in mergesource, and it is better to make the test directly, because only citations have source references and they only have one reference.
svn: r18417
2011-11-08 17:39:17 +00:00
Tim G L Lyons
3adb1b7ffa Merged trunk r17888 through r18397 into geps023.
Conflicts resolved in:
    /data/grampsxml.dtd
    /data/grampsxml.rng
    /src/Filters/Rules/Repository/_MatchesNameSubstringOf.py
    /src/plugins/import/ImportXml.py
(Various property conflicts also resolved)

svn: r18405
2011-11-05 19:07:58 +00:00
Tim G L Lyons
4169661302 Update uses of get_source_referents to handle citations:
* implement new Utils get_source_and_citation_referents
* Update sourceview.py and citationtreeview.py to use it
* Fix editsource.py, where deletion of a source object was not properly dealing with all possible citations
* Update mediaobj.py which still had a remnant of a source_list
* fix _HasTextMatchingSubstringOf filter to deal with text in both sources and citations

svn: r18394
2011-11-01 11:10:18 +00:00
Paul Franklin
6a651d80e7 malformed SVN "Id" line
svn: r18392
2011-10-31 15:33:09 +00:00
Paul Franklin
bb0b9de18b malformed SVN "Id" line
svn: r18391
2011-10-31 15:27:48 +00:00
Brian Matherly
93ec059b3d Remove ErrorDialog and WarningDialog from reports. Replace with User.warn() and User.notify_error().
svn: r18388
2011-10-31 02:40:19 +00:00
Brian Matherly
0b8ea1202d Implement new "User()" class for reports to indicate progress and prompt the user. This allows the removal of from "gui.utils import ProgressMeter" from reports so that they don't depend on gui.
svn: r18378
2011-10-29 05:02:33 +00:00
Paul Franklin
22b0f8476c 5031: Some reports should not register the page orientation to non-default (Landscape)
svn: r18366
2011-10-23 20:38:22 +00:00
Jérôme Rapinat
f455cb269c 5293: wording improvements
svn: r18364
2011-10-23 07:51:22 +00:00
Paul Franklin
ba60ec4c07 missing or malformed SVN "Id" line
svn: r18361
2011-10-23 03:13:50 +00:00
Paul Franklin
4997134564 corrected SVN "Id" property
svn: r18357
2011-10-22 15:10:59 +00:00
Paul Franklin
1a4f9cdca7 added GPLv2 and SVN Id line
svn: r18345
2011-10-18 18:14:07 +00:00
Tim G L Lyons
2c89d2e0b2 Fix merge citations for repositories
svn: r18343
2011-10-18 16:38:18 +00:00
Tim G L Lyons
5e0c4d074a Updated Filters and Filters/Rules for citations
* renamed HasSourceBase to HasSourceCountBase to reflect function, and because HasSourceBase is changed to be more widely used
* consequent renaming of filters for various object types
* changed source filters to a new 'Citation/source filters' category
* added Citation/_HasSource to check whether Citation refers to a Source with particular properties
* added Person/_HasCitation, Event/_HasCitation and Family/_HasCitation to check whether object refers to a Citation with particular properties
* updated Citation/_MatchesSourceFilter
* updated Rules/_MatchesSourceConfidenceBase
* updated Rules/_MatchesSourceFilterBase
* updated Citation object and citationbase.py for source references
* updated Person/_HasSourceOf 

* updated comments in Filters/Rules/__init__.py to document how the various rules are used.


svn: r18339
2011-10-16 21:09:49 +00:00
Paul Franklin
331c135235 5128: Python files with no SVN "Id" property (& added MIME text/plain if none)
svn: r18338
2011-10-16 20:21:22 +00:00
Doug Blank
7b4b4136bf Importing from webpage--- need to report error and status
svn: r18332
2011-10-16 01:46:28 +00:00
Tim G L Lyons
f35cb08aff Upgrade repository (because addresses can have sources)
svn: r18331
2011-10-15 21:48:57 +00:00
Doug Blank
0b1649b0f4 Move src/web to src/webapp to make it more clear what this dir is for
svn: r18327
2011-10-15 20:21:48 +00:00
Doug Blank
382336e9b5 Missing return self on unserialize for convienience and consistency
svn: r18325
2011-10-15 20:09:20 +00:00
Doug Blank
d829ca51fa Return self from unserialize as convienience and to match other objects
svn: r18323
2011-10-15 15:02:51 +00:00
Tim G L Lyons
73c35130ab Diagnostic print during rebuild reference map
svn: r18321
2011-10-14 23:13:21 +00:00
Jérôme Rapinat
0259a143a0 can died at same year as max_alive
svn: r18316
2011-10-13 16:11:06 +00:00
Jérôme Rapinat
7c06699fb8 5293: use correct method with precision set; try to avoid age greater than max alive (user preferences)
svn: r18315
2011-10-13 14:52:52 +00:00
Jérôme Rapinat
1bc8f8a79c 5293: age='unknown' for after/after and before/before dates (age calculation)
svn: r18298
2011-10-12 16:30:18 +00:00
Jérôme Rapinat
6dbab99330 5293: return year only with 'about' calculation
svn: r18294
2011-10-12 14:42:54 +00:00
Doug Blank
bdc643366d Added return on unserialize; added create for all classes
svn: r18286
2011-10-11 23:39:10 +00:00
Doug Blank
552602da8b Added include_in_listing handling to ignore packages
svn: r18276
2011-10-10 12:27:14 +00:00
Tim G L Lyons
14c4b6a463 Fix backref links from events to person. In the event view, the 'Main Participants' was blank, as was the 'References' gramplet.
svn: r18245
2011-10-03 17:19:23 +00:00
Tim G L Lyons
8c36ed6a8e Add MergeCitations tool.
Add note to upgrade information dialogue box to suggest running the tool.
Fixes to Person and Family for get citation child list for merging citations.


svn: r18228
2011-09-30 21:34:21 +00:00
Tim G L Lyons
a906c98439 Clean-up Sources and Citations views:
* Add icon for citations view
* disable old sourceview
* change citationtreeview to be Sources navigation view
* citationlistview is now the Citations view
* merge libcitationview into citationlistview and citationtreeview, and corrected and rationalised
* remove libcitationview
* corrected initialisation of source_handle in Citation.py
* fixes for preventing same source being edited twice
    - fixed blockedtext in citationembededlist
    - override build_window_key in editcitation.py

svn: r18211
2011-09-26 19:53:18 +00:00
Tim G L Lyons
5719832f36 Citation filters
svn: r18182
2011-09-20 22:05:41 +00:00
Peter Landgren
5c7f6751af Fix of first issue in 5194.
svn: r18105
2011-09-03 11:26:15 +00:00
Tim G L Lyons
bb854ec772 Modifications as suggested by Nick Hall:
* Remove inheritance of Citation from RefBase, using source_handle filed instead (similar to  the way Family objects store mother and father handles) (also use the set_ and get_reference_handle functions more consistently)
* Use get_citation_list instead of get_citation_references (more consistent with the way notes are handled)

svn: r18100
2011-09-02 10:40:53 +00:00
Tim G L Lyons
bad963e150 Modifications to upgrade code as suggested by Michiel Nauta; many thanks for his advice.
svn: r18096
2011-09-01 22:07:04 +00:00
Tim G L Lyons
29cc4ee6e9 * various updates to CitationView, CitationEmbedView and CitationEditor to take account of Rev 17973 for two different object types in selectors
* updates to citationviews to support all the functionality (add source etc.) provided by sourceview (including different tooltips for tree view and list view)
* moved registration of citationtreeview into view.grp.py
* removed citationtreeview.grp.py module
* fixed update to citation when note is deleted
* fixed update to citation when media object is deleted
* re-enabled edit button in sourcebackreflist
* improved date display in mergecitation
* changed default note type for citation notes
* changed backref in citation editor to CitationBackRefList
* fixed removal of citation handles from the list in primary objects when a citation is deleted
* fixes for pylint

svn: r18095
2011-09-01 18:13:42 +00:00
Tim G L Lyons
5a3cef062c * Implemented merge Citation
* Updated merge Sources
* Implemented undo-redo for citations (revision 18069 had only added citations to the undo-redo list, not acted on that types of element)
* Fixed embedded lists for some of the object type editors that were done in Rev 18069
* Modified EditCitation so the source parameter is optional
* Added svn properties for all /src/Merge/merge*.py modules
* Added support for EditCitation from backreflist.py

svn: r18085
2011-08-30 10:40:30 +00:00
Tim G L Lyons
d3dcbb1c12 Implemented database upgrade for all eligible remaining object types.
Added Citations to undo-redo feature.
Moved Citation view within navigation pane to below Sources.
Removed useless edit button from sourcebackreflist.
Fixed default bottombar gramplets for citations. 

svn: r18069
2011-08-26 23:18:11 +00:00
Tim G L Lyons
165625715d Various enhancements:
* Modified Event object to include references to Citations
* Implemented database upgrade for Events (upgrade for Media had already been done)
* Enhanced database upgrade to do backlinks
* Modified Media object to remove sourceref
* Implemented citations bottombar gramplet
* Some minor fixes and improvements

svn: r18054
2011-08-23 16:54:03 +00:00
Brian Matherly
b0b919d148 Patch from Paul Franklin - Partial work for: 0004646: reports cannot be run from the command line in a non-GUI environment
svn: r18047
2011-08-19 01:57:43 +00:00
Michiel Nauta
6cbe9e31b5 5145: attempted deletion stopped
svn: r18020
2011-08-09 20:34:21 +00:00
Tim G L Lyons
f9df3503b2 Added svn properties and improved some code layout (mainly long lines).
svn: r17977
2011-07-29 10:31:41 +00:00
Tim G L Lyons
9ff46d9eab Initial prototype.
* Changed database to introduce Citations
* Introduced new Citation Primary object and CitationBase (equivalent to CitationRef) child object
* Implemented CitationTreeModel and CitationListModel
* Implemented CitationTreeView and CitationListView for new citation views in the navigator
* Implemented EditCitation which is used both for the citation views in the navigator and for the citations of an object
* Implemented the CitationEmbedList to display the citations of an object
* Modified the bottom bar gramplets to support citations
* Implemented the citation selector.
* Modified Media object to include references to Citations
* Initial work on deleting citations


svn: r17960
2011-07-24 18:30:28 +00:00
Brian Matherly
bb6ad450e3 Patch by Adam Stein <adam@csh.rit.edu > - Partial completion of "0002513: Using section/region on media_ref as thumbnail on reports"
svn: r17917
2011-07-12 03:30:58 +00:00
Jérôme Rapinat
bc69af84af typo on docstring
svn: r17905
2011-07-08 15:50:55 +00:00
Michiel Nauta
2a10453af0 5046: GEDCOM import fails on aka name
svn: r17838
2011-06-27 15:20:56 +00:00
Peter Landgren
4750ab4816 Endnotes improvment, see issue 4997 & 4998.
svn: r17809
2011-06-19 11:47:22 +00:00
Peter Landgren
d66d7cdc9c Fix so that date, if any, in source reference is printed.
svn: r17734
2011-06-09 14:26:23 +00:00
Michiel Nauta
e1109cd0b0 4209: XML DTD rewrite, cleanup
svn: r17647
2011-06-01 21:32:52 +00:00
Benny Malengier
607d06f901 4910: when no surname known, Narweb picks up the patronymic as Main surnames
svn: r17606
2011-05-28 15:49:57 +00:00
Benny Malengier
75e6b38fbc Allow modifier % on styledtext
svn: r17579
2011-05-27 09:06:48 +00:00
Doug Blank
521b8fa98d Made NextYear use Today() + 1
svn: r17547
2011-05-21 22:06:40 +00:00
Jérôme Rapinat
1ab2656517 2521, 4923 'after' and validation (partial fix); typo on NextYear()
svn: r17545
2011-05-21 08:38:22 +00:00
Michiel Nauta
654fb81665 Change default to return handles unsorted on get_object_handles methods
svn: r17537
2011-05-19 20:36:17 +00:00
Michiel Nauta
fd4b980c3e Allow setting mode on opening of file
svn: r17519
2011-05-17 17:22:03 +00:00
Michiel Nauta
34e6755e8b Prevent db deadlock on all_handles method
svn: r17517
2011-05-17 17:15:12 +00:00
Brian Matherly
3d4f4f031c Patch from Adam Stein <adam@csh.rit.edu>: Add support for links and cropped images in ODF document output. Also related to: http://www.gramps-project.org/bugs/view.php?id=4774
svn: r17451
2011-05-08 03:29:36 +00:00
Benny Malengier
ef19ca1f69 4847: when no surname known, GRAMPS picks up the patronymic as Primary[sur]
svn: r17439
2011-05-07 13:39:33 +00:00
Michiel Nauta
66efd796c5 4669: Long transactions can cause unwanted effects in TreeViews
svn: r17422
2011-05-05 20:02:48 +00:00
Michiel Nauta
f9f932e568 4322: Upgrading a large database to new version runs out of memory; increase locktable size
svn: r17364
2011-05-01 06:53:01 +00:00
Nick Hall
6ae3d86480 Remove gramplet update messages from the status bar
svn: r17355
2011-04-30 10:51:53 +00:00
Michiel Nauta
b6471586d4 3614: Undo gives wrong text in menu of what it will do; uncontroversial patch part
svn: r17225
2011-04-23 14:17:53 +00:00
Doug Blank
4ec351710d Removed title_id from gramplets; not needed
svn: r17197
2011-04-22 01:44:20 +00:00
Michiel Nauta
ff045c3e19 4818: Change time after DB upgrade (3.2 to 3.3)
svn: r17154
2011-04-19 18:00:34 +00:00
Michiel Nauta
7f72b08758 4750: SessionLog gramplet crash
svn: r17151
2011-04-19 15:26:15 +00:00
Brian Matherly
3db2b525f6 0004820: Cannot translate hard coded 'PERSON' string on reports
svn: r17101
2011-04-12 02:49:34 +00:00
Nick Hall
0f564c43ef 4641: Interface for indicating if GrampsBar gramplets have data
svn: r17049
2011-04-05 18:24:44 +00:00
Vassilii Khachaturov
4a03503c98 4796: 'Primary' string needs l10n context
CR: Benny
* Created two strings with l10n context instead of the old one,
'Role|Primary' and 'Name|Primary'.
* While testing, GUI started showing the context when not localized, fixed
that with appropriate sgettext instead of gettext in surnametab.py.
* While at it, changed also changed 'Family' in the Role context to 'Role|Family'.
* ru.po: major translations in the area of name and name formats.
The new Primary[...] and Patronymic[...] concept along with Notpatronymic
still don't fit well when translated :-(



svn: r16986
2011-03-30 14:43:34 +00:00
Doug Blank
e2c6a9cdb4 #4795 Gramplet titles now appear in current language, not the language used at time of creation; also added properties for gramplet navtype and orientation preferences
svn: r16985
2011-03-30 13:48:46 +00:00
Michiel Nauta
d1a8593f7f Add merge unittests
svn: r16952
2011-03-27 21:15:07 +00:00
Michiel Nauta
5835c8e933 Move opening of file to gen.plug.utils
svn: r16939
2011-03-27 08:11:51 +00:00
Michiel Nauta
caec97cb7f Make DbWriteBase inherit from DbReadBase to increase pylint score
svn: r16913
2011-03-24 21:38:04 +00:00
Jérôme Rapinat
31c7750b62 help for translators, avoid long strings here
svn: r16879
2011-03-22 12:37:07 +00:00
Benny Malengier
fac3f46efb Fix regression with sort as and display as in names. Functionality is again as one would expect in treeview
svn: r16849
2011-03-18 15:45:41 +00:00
Benny Malengier
3c9fa2c1d4 4598: (trunk 3.3) new name format copies patronymic into surname as well as leaving it as a patronymic when importing
This extends what name display can be


svn: r16848
2011-03-18 10:42:03 +00:00
Brian Matherly
e6befe67b9 Separate some general code from GUI specific code - particularly for graph generators so that graphs can be generated from the CLI.
svn: r16838
2011-03-17 03:02:36 +00:00
Michiel Nauta
12a01f6700 4759: Make setting a grampstype only assign a string when type is CUSTOM
svn: r16837
2011-03-16 22:06:28 +00:00
Michiel Nauta
3e76c9d3b5 4758: Copy constructor of gen.lib objects uses shallow copy instead of deep copy
svn: r16825
2011-03-15 21:52:08 +00:00
Michiel Nauta
2b72a71a6e 4416: Adjust import ID to users ID format
svn: r16791
2011-03-09 16:22:05 +00:00
Michiel Nauta
959bea3507 4041: Filter rule people with records containing <substring> fails on street name
svn: r16760
2011-03-05 10:47:07 +00:00
Michiel Nauta
a7906886af undo revision 16673
svn: r16742
2011-03-02 11:31:57 +00:00
Michiel Nauta
e99e492a1b 4665: Aborted transactions appear in the undo history
svn: r16697
2011-02-22 16:03:11 +00:00
Gerald Britton
e8b0c9d1eb Tweak
svn: r16688
2011-02-21 14:35:04 +00:00
Michiel Nauta
cdf024c6dc 4662: Unable to add more than one name format
svn: r16682
2011-02-20 18:29:59 +00:00
Benny Malengier
752d594571 4198: Person view does not remove a row correctly when two people are merged.
This patch improves on the context changes:
 * avoid use of transaction_xx methods
 * force an abort in case of unclean transaction

Backward compatibility is broken to achieve this.


svn: r16680
2011-02-20 10:52:06 +00:00
Peter Landgren
dbfd4c9e35 Further improvment for Swedish Calendar.
svn: r16675
2011-02-19 14:13:46 +00:00
Michiel Nauta
756bd836a0 4657: The "sort as" name is ignored
svn: r16673
2011-02-19 14:06:21 +00:00
Doug Blank
8715e15b95 Don't crash if name.txt doesn't exist; this can happen if you try to get name before you open a database
svn: r16666
2011-02-18 19:07:32 +00:00
Doug Blank
918f8f949b Why was this removed?
svn: r16654
2011-02-17 20:33:33 +00:00
Michiel Nauta
17e1091024 4614: Views with persons name look strang after XML import
svn: r16652
2011-02-17 18:09:53 +00:00
Gerald Britton
e25b523fc5 Fix bug in version_str_to_tup
svn: r16651
2011-02-17 17:03:09 +00:00
Peter Landgren
e3557e3008 Improved Swedish Calendar.
svn: r16643
2011-02-17 08:36:40 +00:00
Gerald Britton
a19e65073c Use built-in map function to simplify some list comprehensions
svn: r16636
2011-02-16 20:06:40 +00:00
Michiel Nauta
d2a0f9fa23 Properly close database environment upon open failure
svn: r16618
2011-02-14 20:19:44 +00:00
Michiel Nauta
0eb166615b Replace bare except by specific exception.
svn: r16606
2011-02-11 18:29:15 +00:00
Michiel Nauta
1231b1cac8 4590: Error on access of LDS editor when sealed to family has been removed.
svn: r16592
2011-02-09 16:03:52 +00:00
Gary Burton
b1ce7f7014 Add new abstract methods to ReportOptions. Bug #4572
svn: r16581
2011-02-05 17:46:43 +00:00