Commit Graph

729 Commits

Author SHA1 Message Date
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
Peter Landgren
8aec0756a8 Better abbreviations, thanks to Paul Franklin.
svn: r16568
2011-02-04 15:43:36 +00:00
Benny Malengier
ebe5229822 4599: regression from 3.2.5 - name format preference doesn't persist across reloads
svn: r16565
2011-02-04 10:51:28 +00:00
Benny Malengier
60e8c0c013 3975: Accessing an incompatible database corrupts the database
Undoing unset of DB_RECOVERY flag, we need it to have ACI(D) database


svn: r16562
2011-02-03 22:23:36 +00:00
Michiel Nauta
a34d022cae Restore person-place replace_handle_reference.
svn: r16555
2011-02-03 18:17:00 +00:00
Peter Landgren
35d8b00993 Added a comment.
svn: r16528
2011-02-01 12:11:51 +00:00
Benny Malengier
6d596ad987 4198: Person view does not remove a row correctly when two people are merged.
This is a major patch by Michael Nauta. It means all writes happen immediately to bsddb, and the bsddb 
rollback is used on a crash. Transaction is no longer used to store changes and do them on commit.
Undo database is set on end. 
At the same time with statement is used throughout for transactions
At the same time, the original bug in merge code should be fixed
Still some issues, that will be ironed out


svn: r16523
2011-01-31 21:54:58 +00:00
Peter Landgren
7716c7cbdd Issue 4425: Abbreviation algorithm does not work for all languages.
svn: r16518
2011-01-31 19:40:27 +00:00
Benny Malengier
9a2fd50642 Changes to allow a QML interface:
* a const to launch it
 * fix an error in obtaining dbname
 * refractor pieces to allow reuse


svn: r16504
2011-01-30 16:28:54 +00:00
Nick Hall
116d26e69f Add extra GrampsBar functionality.
svn: r16502
2011-01-30 03:02:38 +00:00