Commit Graph

107 Commits

Author SHA1 Message Date
Martin Hawlisch
47922e7be9 * src/PeopleModel.py (calculate_data): Fix invert of search result
* src/Date.py (is_equal): Only compare text value for TEXTONLY dates.
* src/GenericFilter.py: Add new filters to search for notes


svn: r4903
2005-07-05 21:15:05 +00:00
Julio Sánchez
edf6e80023 * src/GenericFilter.py: Do not attempt to translate user filters,
fix a problem with filter names that contain non-ASCII characters


svn: r4884
2005-06-27 15:34:36 +00:00
Julio Sánchez
ccfd1e57b4 * src/GenericFilter.py: Fix uninitialized ancestor_cache in
HasCommonAncestorWithFilterMatch, fix or-ing filters


svn: r4878
2005-06-26 20:55:49 +00:00
Alex Roitman
4f9a905a15 * src/GenericFilter.py (IsDescendantOfFilterMatch.__init__):
Remove unneeded method.


svn: r4859
2005-06-22 15:12:20 +00:00
Don Allingham
f15be4cc33 filter optimization
svn: r4858
2005-06-21 20:51:57 +00:00
Martin Hawlisch
5676035276 * src/GenericFilter.py: Resolve handle-person mixup +many other bugfixes
svn: r4855
2005-06-21 09:50:18 +00:00
Don Allingham
6730d35232 * src/AddSpouse.py: accept Person instead of handle
* src/ChooseParents.py: accept Person instead of handle
* src/GenericFilter.py: use single pass through database, filters
accept Person objects instead of handles
* src/PeopleModel.py: don't precalculate handle list
* src/RelLib.py: allow person object to be initialized with
serialized data
* src/SelectChild.py: accept Person instead of handle

* src/SelectChild.py (LikelyFilter.prepare,LikelyFilter.apply):


svn: r4854
2005-06-21 04:04:44 +00:00
Martin Hawlisch
2e78c8d6f8 * src/GenericFilter.py: Catch invalid input in some filters;
(old_names_2_class): Add one name for full 1.0.11 compatibility;
(FilterParser): Properly catch invalid rule names and invalid module/class names.


svn: r4628
2005-05-19 07:57:50 +00:00
Alex Roitman
0cdf38f43f Update
svn: r4619
2005-05-18 21:05:37 +00:00
Alex Roitman
686458138a * src/GenericFilter.py: Use class names for internal work; Rework
ID-based filters to use gramps-id instead of a handle.
* src/plugins/FilterEditor.py: Use class names for internal work.


svn: r4618
2005-05-18 20:56:30 +00:00
Alex Roitman
3182ef4191 * src/Date.py: Import gettext.
* src/DateDisplay.py: Import gettext.
* src/GenericFilter.py: Support existing custom_filters.xml files
by adding an old2new mapping for names.


svn: r4611
2005-05-18 04:33:15 +00:00
Alex Roitman
f14c71c726 * src/GenericFilter.py: Change filter rule names to make them consistent.
* src/gramps_main.py: Change filter names to make them consistent.


svn: r4609
2005-05-17 22:15:32 +00:00
Alex Roitman
026da172b7 * src/plugins/StatisticsChart.py: Minor stylistic corrections.
* src/GenericFilter.py: Minor stylistic corrections.


svn: r4602
2005-05-16 22:00:59 +00:00
Martin Hawlisch
8e7e8155f7 * src/GenericFilter.py (HasTextMatchingSubstringOf, HasTextMatchingRegexpOf): Search media objects in full text search.
* src/RelLib.py: Add GRAMPS ID to get_text_data_list so this field is usable in full text search; Dont crash if get_text_data_list contains None values instead of empty strings.
* src/EditPerson.py: Dont crash with "note only" media object.


svn: r4593
2005-05-14 12:52:27 +00:00
Martin Hawlisch
9a1dece0db * src/GenericFilter.py (IsSiblingOfFilterMatch): Match only sibling, not the filterMatch; (HasEvent,HasFamilyEvent): Dont crash in filter editor.
svn: r4592
2005-05-14 10:03:36 +00:00
Martin Hawlisch
db2c05cd13 * src/GenericFilter.py (HasEvent,HasFamilyEvent): Correct filter rules
svn: r4588
2005-05-13 20:21:45 +00:00
Martin Hawlisch
864e8bb7d4 * src/GenericFilter.py (ParamFilter.apply): Set parameter list before prepare (solves crash in full text search)
* src/gramps_main.py: Enable full text search filters again


svn: r4571
2005-05-12 15:03:17 +00:00
Martin Hawlisch
5e93c54df9 * src/GenericFilter.py: Fix copy-n-paste errors; dont crash on empty database
svn: r4487
2005-05-05 09:54:23 +00:00
Martin Hawlisch
7c49fac9a9 * src/GenericFilter.py (HaveChildren): Match what it should
svn: r4476
2005-05-03 19:39:04 +00:00
Don Allingham
893168feb6 Filtering fixes
svn: r4458
2005-05-02 21:50:15 +00:00
Martin Hawlisch
ec549b3d69 * GenericFilter.py: Don't crash on corrupt database
svn: r4381
2005-04-19 19:33:56 +00:00
Eero Tamminen
b905316bbd fix typos
svn: r4379
2005-04-19 16:41:22 +00:00
Martin Hawlisch
b33612a7a1 * src/GenericFilter.py (FilterParser.startElement): Catch non existing filter rule and print an error message
svn: r4325
2005-04-08 18:52:05 +00:00
Martin Hawlisch
690bcd9e68 * src/GenericFilter.py: Call prepare/reset for nested filters
svn: r4319
2005-04-07 13:24:16 +00:00
Martin Hawlisch
b0b84ebb1f Remove debugging code
svn: r4314
2005-04-06 20:49:19 +00:00
Martin Hawlisch
ad39f6be25 * src/gramps.glade: People View: Add label for filter text input field.
* src/GenericFilter.py (ProbablyAlive): Add check for input parameter, (HasSourceOf): get handle only once, removed unused code.
* src/gramps_main.py: Show label for filter input field.


svn: r4313
2005-04-06 20:26:15 +00:00
Richard Taylor
76c44f2694 2005-04-06 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/GenericFilter.py: added a current year parameter to probably alive rule.
	* src/Utils.py: added a current year parameter to probably alive function.


svn: r4312
2005-04-06 15:52:52 +00:00
Richard Taylor
721af70faf 2005-04-06 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/GenericFilter.py: Added HasSourceOf rule
	* src/plugins/FilterEditor.py: Added MySource combobox for selecting source IDs.


svn: r4310
2005-04-06 15:03:36 +00:00
Alex Roitman
11c61d5766 * src/GenericFilter.py (HasTextMatchingSubstringOf): Minor.
* src/plugins/FilterEditor.py (EditRule:__init__): Typo.
* ChangeLog.old: Add to CVS the pre-2005 ChangeLog; Split off current.


svn: r4195
2005-03-16 16:38:20 +00:00
Martin Hawlisch
09cff3f693 * src/GenericFilter.py (HasTextMatchingSubstringOf): add checkboxes for case and regexp matching; (HasTextMatchingRegexpOf)
Added wrapper to use regexp matching in HasTextMatchingSubstringOf
* src/gramps_main.py: Add new regular expression filter
* src/plugins/FilterEditor.py (EditRule:__init__): Treat params of new filter as boolean.
* TODO: Add parameter definition of Filter Rules to the filter itself, so it can be removed from the filter editor and used by
PeopleView.


svn: r4193
2005-03-16 14:13:33 +00:00
Martin Hawlisch
56150c93e6 HasTextMatchingSubstringOf: Syncronized filter name
svn: r4187
2005-03-15 20:16:16 +00:00
Alex Roitman
0b892faff2 * src/GenericFilter.py (HasTextMatchingSubstringOf):
Rename FullTextSearch as well as its descriptions.
* src/gramps_main.py: Change string for filter menu.
* src/plugins/FilterEditor.py (EditRule.__init__): Hide window while
drawing.
* src/DateEdit.py (DateEditorDialog.__init__): Hide window while
drawing.


svn: r4186
2005-03-15 16:26:30 +00:00
Alex Roitman
c492d5a5ad * src/RelLib.py (Source.get_text_data_child_list,
Family.get_text_data_child_list): Add missing lists.
* src/GenericFilter.py (FullTextSearch): Correct description.

* src/GenericFilter.py (FullTextSearch): Added new filter that provides
a full-text search thru (nearly) all attributes and linked objects of a person.


svn: r4185
2005-03-15 15:56:47 +00:00
Martin Hawlisch
840c8ec4a9 * src/GenericFilter.py (FullTextSearch): Added new filter thad provides
a full-text search thru (nearly) all attributes and linked objexts of a person.
* src/gramps_main.py: add the new filter to the menu.
* src/RelLib.py (Event,Source): fix get_text_data_child_list() to correct
attributes of the class; (Family): fix get_sourcref_child_list().


svn: r4183
2005-03-15 12:56:14 +00:00
Martin Hawlisch
9130c8819e * src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
reset(), that are called before/after a filter is applied, to properly
support query caches; (IsWitness): new filter;
(RelationshipPathBetween,IsDescendantOf,IsLessThanNthGenerationDescendantOf,
IsMoreThanNthGenerationDescendantOf,IsChildOfFilterMatch,IsSiblingOfFilterMatch,
IsAncestorOf,IsAncestorOfFilterMatch,IsLessThanNthGenerationAncestorOf,
IsMoreThanNthGenerationAncestorOf,IsParentOfFilterMatch,HasCommonAncestorWith):
use prepare() and reset() to create a proper query cache. Currently the
cache was only created once after object creation and never updated.
* src/gramps_main.py: Add new filters to the menu.


svn: r4171
2005-03-13 19:49:38 +00:00
Martin Hawlisch
1901e63677 * src/GenericFilter.py (PersonWithIncompleteEvent,
FamilyWithIncompleteEvent, ProbablyAlive,PeoplePrivate):
Add filter rules.
* src/gramps_main.py (init_filters): Add new filters to the menu.


svn: r4159
2005-03-11 20:53:53 +00:00
Alex Roitman
46da2d9a61 Update
svn: r4157
2005-03-10 20:55:18 +00:00
Alex Roitman
e3edfe4525 * src/GenericFilter.py (IsBookmarked,IncompleteNames,
HaveAltFamilies,HavePhotos,HaveChildren,NeverMarried,
MultipleMarriages,NoBirthdate): Add filter rules.
* src/gramps_main.py (init_filters): Add new filters to the menu.


svn: r4156
2005-03-10 19:01:00 +00:00
Alex Roitman
a5c857809f * src/GenericFilter.py (IsDefaultPerson,IsSiblingOfFilterMatch):
Add filter rules.


svn: r4146
2005-03-09 17:47:23 +00:00
Alex Roitman
b808432d36 * src/GenericFilter.py (HasAttribute.apply): Make work when no value
is given; (HasFamilyAttribute.apply): Make work when no value is given.


svn: r4117
2005-03-04 15:15:20 +00:00
Alex Roitman
91bcc33a22 * src/GenericFilter.py (HasAttribute.apply): Fix the rule.
(HasFamilyAttribute.apply): Fix the rule.
* src/Marriage.py (on_update_attr_clicked,on_add_attr_clicked):
Pass the window to the attribute editor.


svn: r4115
2005-03-03 15:00:55 +00:00
Alex Roitman
164cfe3983 * src/plugins/FilterEditor.py: Multiple fixes.
* src/GenericFilter.py: Multiple fixes.


svn: r4112
2005-03-03 05:13:47 +00:00
Don Allingham
f7df43643f * various: Change Person.male, Person.female, and Person.unkwown
to Person.MALE, Person.FEMALE and Person.UNKNOWN

* gramps.spec.in: bring up to date, support Fedora Core and Mandrake
* src/plugins/NavWebPage.py: Start of the Narrative Web Page plugin


svn: r4008
2005-02-01 03:46:29 +00:00
Alex Roitman
414a2c80d6 * src/Utils.py (for_each_ancestor): Switch from Person to handle.
* src/GenericFilter.py (for_each_ancestor): Pass db instance.


svn: r3902
2005-01-11 22:41:15 +00:00
Don Allingham
cf5ddaf1c8 * src/EditPerson.py: switch to ComboBox from OptionMenu
* src/GenericFilter.py: switch to ComboBox from OptionMenu
* src/Marriage.py: switch to ComboBox from OptionMenu
* src/PeopleView.py: switch to ComboBox from OptionMenu
* src/gramps.glade:switch to ComboBox from OptionMenu
* src/gramps_main.py: switch to ComboBox from OptionMenu


svn: r3877
2005-01-07 04:34:02 +00:00
Don Allingham
e7569e2671 * src/Plugins.py: move non-gui functions to PluginMgr.py
* src/PluginMgr.py: Non-gui functions for plugins
* src/Makefile.am: Added PluginMgr.py
* various: switch from Plugins to PluginMgr


svn: r3866
2005-01-05 05:02:19 +00:00
Don Allingham
63d7153857 * src/gramps.glade: remove name display options
* src/GrampsCfg.py: remove name displaying functions
* src/Makefile.am: add NameDisplay.py to list
* src/NameDisplay.py: New name displaying class
* src/Utils.py: use new NameDisplay class
* src/AddSpouse.py: use new NameDisplay class
* src/AddrEdit.py: use new NameDisplay class
* src/Bookmarks.py: use new NameDisplay class
* src/ChooseParents.py: use new NameDisplay class
* src/DisplayModels.py: use new NameDisplay class
* src/EditPerson.py: use new NameDisplay class
* src/EditPlace.py: use new NameDisplay class
* src/EditSource.py: use new NameDisplay class
* src/FamilyView.py: use new NameDisplay class
* src/GenericFilter.py: use new NameDisplay class
* src/ImageSelect.py: use new NameDisplay class
* src/Marriage.py: use new NameDisplay class
* src/MergeData.py: use new NameDisplay class
* src/NameEdit.py: use new NameDisplay class
* src/PedView.py: use new NameDisplay class
* src/PeopleModel.py: use new NameDisplay class
* src/ReadGedcom.py: use new NameDisplay class
* src/Report.py: use new NameDisplay class
* src/SelectChild.py: use new NameDisplay class
* src/SubstKeywords.py: use new NameDisplay class
* src/Witness.py: use new NameDisplay class
* src/WriteGedcom.py: use new NameDisplay class
* src/gramps_main.py: use new NameDisplay class
* src/plugins/Desbrowser.py: use new NameDisplay class
* src/plugins/Merge.py: use new NameDisplay class
* src/plugins/RelCalc.py: use new NameDisplay class


svn: r3852
2005-01-01 04:27:15 +00:00
Don Allingham
ad337312d4 * src/DateEdit.py: use global date displayer/parser
* src/DateHandler.py: provide global date displayer/parser
instead of having a bunch of different classes have their
own handler that needs to be updated with the handlers change.
* src/EditPerson.py: use global date displayer/parser
* src/EventEdit.py: use global date displayer/parser
* src/FamilyView.py: use global date displayer/parser
* src/GenericFilter.py: use global date displayer/parser
* src/GrampsCfg.py: remove unused statements
* src/ImageSelect.py: use global date displayer/parser
* src/Marriage.py: use global date displayer/parser
* src/ReadXML.py: use global date displayer/parser
* src/RelLib.py: don't require get_display_info, eliminate
needed for importing const and GrampsCfg
* src/SelectChild.py: don't require get_display_info
* src/Sources.py: use global date displayer/parser
* src/plugins/RelCalc.py: don't require get_display_info


svn: r3841
2004-12-29 05:06:10 +00:00
Don Allingham
ce6192ea46 * src/GenericFilter.py: Add a combobox that handles filter
selection
* src/PaperMenu.py: Add combobox classes to handle paper size
and paper orientation selection.
* src/Plugins.py: Add combobox classes to handle draw doc format
and text doc format selection
* src/Report.py: Use new comboboxes
* src/plugins/TimeLine.py: Use new comboboxes

* src/Filter.py: remove - no longer used


svn: r3839
2004-12-28 00:23:49 +00:00
Don Allingham
5f062fccc9 * src/ReadGedcom.py: create GedcomDateParser class to handle
English requirements for GEDCOM


svn: r3838
2004-12-26 18:23:50 +00:00