Commit Graph

1080 Commits

Author SHA1 Message Date
Don Allingham
f0fbb72dc4 * src/GrampsBSDDB.py: fix remove_person and count_person
* src/GrampsInMemDB.py: fix remove_person and count_person


svn: r3566
2004-09-21 03:17:07 +00:00
Alex Roitman
a133a3d6c0 * src/Date.py (get_high_year): Add method to return upper estimate.
* src/AddSpouse.py: Correctly use upper and lower date estimates.
* src/ChooseParents: Correctly use upper and lower date estimates.


svn: r3565
2004-09-21 02:10:23 +00:00
Alex Roitman
79e34708b1 * src/DateEdit.py: Use new Date's set() method. Enable help.
svn: r3563
2004-09-21 01:19:55 +00:00
Alex Roitman
8fffcbc87e * src/gramps_main.py: Remov unused module.
* src/DateDisplay.py (verify_format): Correct check.
* src/Date.py (is_regular): Add method to detect exact single
non-empty dates; (set): Add text string as an optional argument.
* src/DateEdit.py: Use DateHandler instead of low-level DateDisplay;
(check): Display yellow LED for anything other than regular dates.


svn: r3562
2004-09-21 00:58:39 +00:00
Alex Roitman
446449de7d * src/gramps.glade: Add LED button widgets to the sourceref editor.
* src/Sources.py (SourceEditor.__init__): Use DateEdit to support
LED functionality; (SourceEditor.on_sourceok_clicked): Set date using
date object, instead of parsing text.


svn: r3561
2004-09-20 23:26:41 +00:00
Alex Roitman
1487014730 * src/DateEdit.py (DateEdit.invoke_date_editor):
Check the built date and display LED (closes # 1031065).
* src/Sources.py (draw): Properly display date for sourceref;
(on_sourceok_clicked): Properly parse date for sourceref
(closes # 1031156).


svn: r3560
2004-09-20 17:56:26 +00:00
Don Allingham
e5b8384463 * src/Date.py: remove comment field
* src/DateParser.py: add parsing of Month Day1-Day2, Year
* src/RelLib.py: make date parsers/displayers global to resolve
pickle-ing problem
* src/EditPerson.py: update lists before committing to database


svn: r3559
2004-09-20 03:12:51 +00:00
Alex Roitman
f9fb4cd962 * src/Date.py (is_equal): Add method -- needed to compare dates
for being identical, since __cmp__ only compares the sorting value
and ignores the modifiers.
* src/RelLib.py (Event.are_equal, LdsOrd.are_equal):
Use is_equal() method to compare dates.
* src/AddrEdit.py: Use is_equal() method to compare dates.
* src/EventEdit.py: Use is_equal() method to compare dates.
* src/gramps.glade (date_edit): Re-order widgets, add hot keys;
(event_edit, addr_edit): Remove button relief as in editPerson.


svn: r3558
2004-09-20 01:53:59 +00:00
Don Allingham
97fd0bc7d5 * src/gramps.glade: remove button border for date editor button
* src/DateDisplay.py: fix quality prefix display


svn: r3557
2004-09-19 23:05:25 +00:00
Alex Roitman
75ec685b66 * src/DateEdit.py: Take date object as an argument and work with it.
* src/AddrEdit.py: Use date object instead of text.
* src/EditPerson.py: Use date object instead of text.
* src/EventEdit.py: Use date object instead of text.
* src/gramps.glade: Minor cleanup.
* src/Date.py (copy): Add method.
* src/RelLib.py (Address): Correct the use of dates.


svn: r3556
2004-09-19 15:17:57 +00:00
Don Allingham
d382d7b094 * src/GrampsInMemDB.py: new base class for in memory databases, such
as XML or GEDCOM
* src/GrampGEDDB.py: use new GrampsInMemDB base class
* src/GrampXMLDB.py: use new GrampsInMemDB base class
* src/Makefile.am: add GrampsInMemDB.py
* src/ReadGedcom.py: remove debug statements


svn: r3555
2004-09-19 04:11:34 +00:00
Alex Roitman
b9d8abee14 * src/DateEdit.py (DateEdit): Take care of both the button and
the LED pixmap now; Invoke DateEditorDialog if the button is pressed;
(DateEditorDialog): Correct the use of constants; adjust the date
on the calendar change; preserve the old date unless OK was pressed;
* src/AddrEdit.py: Remove date editor callback in favor of DateEdit.
* src/EditPerson.py: Remove date editor callback in favor of DateEdit.
* src/EventEdit.py: Remove date editor callback in favor of DateEdit.
* src/gramps.glade: Minor cleanup; remove unused signal handlers.


svn: r3554
2004-09-18 23:39:40 +00:00
Alex Roitman
b66cf9e5f0 * src/DateParser.py: Minor cleanup.
svn: r3553
2004-09-18 04:11:48 +00:00
Alex Roitman
b4ab304891 * src/gramps.glade: Add date_edit dialog.
* src/DateEdit.py (DateEditorDialog): Add class.
* src/Date.py (get_quality): Typo.
* src/AddrEdit.py: Use date editor callback.
* src/EditPerson.py: Use date editor callback.
* src/EventEdit.py: Use date editor callback.

* src/AddrEdit.py: Add date editor callback
* src/EditPerson.py: Add date editor callback
* src/EventEdit.py: Add date editor callback


svn: r3552
2004-09-18 03:58:30 +00:00
Don Allingham
ac2ebca5ea * src/gramps.glade: replace LED indicators with buttons
svn: r3551
2004-09-18 02:50:30 +00:00
Don Allingham
9c8e337e96 * src/DateDisplay.py: use locale.nl_langinfo to get month
names without manual encoding
* src/DateParser.py: use locale.nl_langinfo to get month
names without manual encoding


svn: r3550
2004-09-17 23:52:09 +00:00
Don Allingham
33f604cb11 * src/Calendar.py: removed
* src/Gregorian.py: removed
* src/Hebrew.py: removed
* src/Julian.py: removed
* src/calendars/Islamic.py: removed
* src/calendars/Persian.py: removed
* src/calendars/Makefile.am: removed
* src/Date.py: New, simpler date structure
* src/DateHandler.py: Start of a class to abstract and select
parser and display functions based off locale
* src/DateParser.py: base date parsing class (US English)
* src/DateDisplay.py: base date display class (US English)
* src/DateEdit.py: handle new date method
* src/EditPerson.py: handle new date method
* src/EventEdit.py: handle new date method
* src/GrampsCfg.py: removed redundant options due to new date class
* src/StartupDialog.py: removed redundant options due to new date class
* src/Makefile.am: handle file changes
* src/Sort.py: handle new date method
* src/ReadGedcom.py: handle new date method
* src/ReadXML.py: handle new date method
* src/WriteGedcom.py: handle new date method
* src/WriteXML.py: handle new date method
* src/RelLib.py: handle new date method
* src/gramps_main.py: handle new date method
* src/gramps.glade: handle new date method


svn: r3546
2004-09-17 03:30:04 +00:00
Tim Waugh
46b32a5619 2004-09-14 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py: Fixed SF bug #1009695.


svn: r3543
2004-09-14 13:51:18 +00:00
Tim Waugh
71e20a6585 2004-09-14 Tim Waugh <twaugh@redhat.com>
* src/docgen/PSDrawDoc.py (PSDrawDoc.__init__): Fixed base method
        call (missing parameter).
        * src/docgen/SvgDrawDoc.py (SvgDrawDoc.__init__): Likewise.


svn: r3542
2004-09-14 13:00:35 +00:00
Tim Waugh
cda63e2a63 2004-09-13 Tim Waugh <twaugh@redhat.com>
* src/GenericFilter.py (IsAncestorOfFilterMatch.apply): Fixed
        thinko.


svn: r3539
2004-09-13 18:08:04 +00:00
Tim Waugh
72008e1b8b 2004-09-13 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py (event_info): Prevent constructions like
        "died in before 1901" by playing safe if the mode is not exact.


svn: r3536
2004-09-13 15:46:00 +00:00
Alex Roitman
0b77a1a3a5 * src/ReadGedcom.py (parse_person_event): Use TYPE field as the description of the event, if the event already has a name.
svn: r3535
2004-09-11 23:24:08 +00:00
Alex Roitman
e452661db4 * src/GrampsDbBase.py: Fix assert statements.
svn: r3533
2004-09-10 22:40:00 +00:00
Alex Roitman
8acca822ba * src/gramps.glade: Typo.
svn: r3532
2004-09-09 14:46:40 +00:00
Alex Roitman
dccb19009d * src/plugins/FilterEditor.py (ShowResults.__init__):
Use gramps IDs instead of handles for display.


svn: r3530
2004-09-09 02:59:48 +00:00
Alex Roitman
7d41926284 * src/EditPlace.py (on_web_go_clicked): Typo.
svn: r3528
2004-09-01 15:11:10 +00:00
Alex Roitman
466aaebfd6 * src/ReadXML.py (start_witness): Properly use handle of witness.
* src/Witness.py (WitnessTab.redraw): Use gramps ID for display;
(WitnessEditor.remove_itself_from_menu): Typo;
(WitnessEditor.ok_clicked): Catch exception and add error dialog.


svn: r3526
2004-09-01 04:57:44 +00:00
Don Allingham
10161013ea * src/RelLib.py (GenderStats.guess_gender): back out
incorrect patch
* src/Witness.py: handle new_name error
* src/SelectPerson.py: remove unused crud left over from
1.0, grab handle instead of GRAMPS ID


svn: r3525
2004-09-01 03:47:10 +00:00
Alex Roitman
fda6ccbc5c * src/Sources.py (SourceTab.redraw, SourceSelector.redraw):
Use gramps ID instead of handle for display.
* src/ImageSelect.py (GlobalMediaProperties.display_refs):
Use gramps ID instead of handle for display.


svn: r3523
2004-08-31 18:27:57 +00:00
Don Allingham
76196868d7 * src/AddMedia.py: use new MediaList update routine
* src/DisplayModels.py: new update list routine
* src/ImageSelect.py: use new MediaList update routine
* src/MediaView.py: use new MediaList update routine
* src/PlaceView.py: new update list routine
* src/SourceView.py: new update list routine


svn: r3521
2004-08-31 03:51:05 +00:00
Don Allingham
ec92261a5a * src/GrampsBSDDB.py: add remove_place function
* src/DisplayModels.py: added row deletion and updating
functions
* src/EditPlace.py: Make a distinction between update and
new
* src/EditSource.py: Make a distinction between update and
new
* src/PeopleModel.py: remove debugging code
* src/PlaceView.py: better handling of updating and deleiting
* src/SourceView.py: better handling of updating and deleiting


svn: r3520
2004-08-30 03:50:33 +00:00
Don Allingham
4ec5ccd047 * src/DbPrompter.py: cleanup dialogs
* src/EditPerson.py: update screen properly
* src/PeopleModel.py: handle stored maps correctly
* src/PeopleView.py: handle stored maps correctly
* src/gramps_main.py: eliminate unnecessary rebuilds, display
loading dialog
* src/gramp.glade: loading dialog


svn: r3519
2004-08-29 05:45:40 +00:00
Don Allingham
7fe1cc5113 * src/RelLib.py: guess_gender fix
* src/gramps_main.py: drop unused goto_active_person parameter


svn: r3518
2004-08-29 02:36:00 +00:00
Don Allingham
e07ffbcdd4 * src/EditPerson.py: make a distiction between adding a person
and editing a person.
* src/PeopleView.py: drop unused goto_active_person parameter
* srcgramps_main.py: drop unused goto_active_person parameter


svn: r3517
2004-08-28 19:49:34 +00:00
Tim Waugh
9459c36c2e 2004-08-27 Tim Waugh <twaugh@redhat.com>
* src/SelectObject.py (SelectObject.redraw): Use GRAMPS ID for
        user display.


svn: r3516
2004-08-27 13:35:24 +00:00
Don Allingham
b147e4e72f * src/DisplayModels.py: fix place and source lists
* src/PlaceView.py: fix place lists
* src/SourceView.py: fix source lists


svn: r3515
2004-08-27 03:41:57 +00:00
Don Allingham
f9f9ea670b * src/Sort.py: use locale.strcoll for sorting
* src/RelLib.py: don't use accent for sort name
* src/EditPerson.py: compare edited ID value properly
* src/Marriage.py: compare edited ID value properly
* src/PeopleModel.py: use locale.strcoll for comparing
* src/GrampsBSDDB.py: use locale.strcoll for comparing/sorting
* src/GrampsDbBase.py: use locale.strcoll for comparing/sorting
* src/DbPrompter.py: handle bad filenames a bit better


svn: r3514
2004-08-26 21:54:14 +00:00
Don Allingham
4ab4faa6ba * src/gramps_main.py: update properly after an edit
* src/Utils.py: generate correct path name, using gramps id
instead of handle
* src/ImageSelect.py: select correct path name for thumbnail

* src/PeopleModel.py: move to a table driven format for
handling columns


svn: r3513
2004-08-26 04:03:11 +00:00
Tim Waugh
e1024a5cc8 2004-08-25 Tim Waugh <twaugh@redhat.com>
* src/WriteGedcom.py (GedcomWriter.write_person): Removed
        debugging noise.


svn: r3511
2004-08-25 07:57:05 +00:00
Tim Waugh
b29af77888 2004-08-25 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (Person.parents_too_old): Fixed typo.


svn: r3510
2004-08-25 07:53:44 +00:00
Don Allingham
1f12cdd680 * src/DisplayModels.py: handle a closed database in on_get_value
* src/PeopleModel.py: handle a closed database in on_get_value


svn: r3509
2004-08-25 03:37:48 +00:00
Don Allingham
2c2655d899 * src/ImageSelect.py: Display GRAMPS ID, not DB handle
* src/WriteGedcom.py: handle image file problems when exporting


svn: r3508
2004-08-25 03:25:23 +00:00
Don Allingham
b163c0304d * src/ReadXML.py: Fix file copy problem, handle copy failure
* src/src/ImageSelect.py: Display GRAMPS ID, not DB handle

* src/plugins/WebPage.py: web page enhancements, including
a place index.


svn: r3507
2004-08-25 03:02:25 +00:00
Tim Waugh
a8627b81b3 2004-08-24 Tim Waugh <twaugh@redhat.com>
* src/MediaView.py (MediaView.on_select_row): Use the correct
        column for DB handle.
        (MediaView.on_select_row): Display GRAMPS ID, not DB handle.
        (MediaView.build_context_menu): Use the correct column for DB
        handle.
        (MediaView.on_edit_clicked): Likewise.
        (MediaView.on_delete_clicked): Likewise.


svn: r3506
2004-08-24 18:05:18 +00:00
Tim Waugh
c5bad7a635 2004-08-24 Tim Waugh <twaugh@redhat.com>
* src/WriteXML.py: Write out 'default' tag on people node for
        compatibility with GRAMPS 1.0.x.


svn: r3505
2004-08-24 10:24:17 +00:00
Alex Roitman
0929184cad * src/GrampsDbBase.py (get_object_from_gramps_id,
get_source_from_gramps_id, get_place_from_gramps_id): Add placeholder
functions with assertions.


svn: r3503
2004-08-24 05:09:50 +00:00
Alex Roitman
f596ef108a * src/ArgHandler.py (auto_save_load): Remove new db creation for BSDDB.
svn: r3502
2004-08-24 04:55:32 +00:00
Alex Roitman
c99cf190cd * src/EdirPerson.py (__init__): Typos.
svn: r3501
2004-08-24 04:51:11 +00:00
Don Allingham
aa0165c0a7 a person is not alive.
svn: r3500
2004-08-24 04:15:23 +00:00
Don Allingham
0e9346bfff * src/PeopleModel.py: enhanced column_spouse
* src/RelLib.py: enhance probably_alive to check for "Cause
of Death", "Burial", and "Cremation" events to indicate that
a person is not alive.
* src/const.py.in: add support for "Marriage Banns"

* src/ReadXML.py: set last change time, support handles


svn: r3499
2004-08-24 04:14:08 +00:00
Don Allingham
e0eb81544c * src/Utils.py: produce less line noise when generating
handles
* src/WriteGedcom.py: save CHAN records
* src/WriteXML.py: save handles and time stamps
* src/GrampsDbBase.py: make the find_xxx_from_handle functions
consistent and correct (handle ids correctly)
* src/DisplayModels.py: add last change column
* src/PeopleModel.py: add last change column
* src/PeopleView.py: add last change column
* src/MediaView.py: add last change column
* src/SourceView.py: add last change column
* src/EditPerson.py: display last change timestamps
* src/EditPlace.py: display last change timestamps
* src/Marriage.py: display last change timestamps
* src/ReadXML.py: set last change time
* src/gramps.glade: updates for last change display


svn: r3498
2004-08-24 03:48:15 +00:00
Alex Roitman
ce2b902131 * src/DbPrompter.py (ExistingDbPrompter.chooser,
ImportDbPrompter.chooser): Destroy file chooser on failure (#1014254).


svn: r3497
2004-08-23 22:50:35 +00:00
Alex Roitman
73d8bdafdc * src/const.py.in: Add gramps-package mime type.
* src/ArgHandler.py (auto_save_load): Subclass database depending
on the format.


svn: r3496
2004-08-23 22:39:41 +00:00
Alex Roitman
7f2b5265da * src/data/Makefile.am: Kill gconfd using SIGTERM -- HUP did not work.
svn: r3495
2004-08-23 22:17:09 +00:00
Alex Roitman
fb8b2ff943 * src/Plugins.py: Add native_format flag to import plugin registration.
* src/ReadXML.py, src/ReadGedcom.py: Register as native formats
to prevent loading twice on File->Open.
* src/data/gramps.schemas: Add keys for last import and export dirs.
* src/GrampsCfg.py (get_last_import_dir, save_last_import_dir,
get_last_export_dir, save_last_export_dir): Add functions.
* src/Exportder.py (suggest_filename): Try last export and last
import folders before falling back to Home; (save): Save export folder.
* src/Utils.py (get_new_filename): Add optional folder argument.
* src/DbPrompter.py (ExistingDbPrompter.chooser): Only add
importers for non-native formats, the rest is already taken care of;
Try last file, last import, last export, then home folders;
(ImportDbPrompter.chooser): Save import folder; Try last import,
last file, last export, then home folders.
(NewNativeDbPrompter): Try last file, last import, last export folders,
then fall back to home.


svn: r3493
2004-08-23 22:05:55 +00:00
Alex Roitman
0153cf36bc * src/plugins/WebPage.py: Use gramps ID for naming the files
and creating links.


svn: r3492
2004-08-23 18:40:25 +00:00
Alex Roitman
6d709a5c94 * src/docgen/AbiWord2Doc.py, src/docgen/AsciiDoc.py,
src/docgen/HtmlDoc.py, src/docgen/KwordDoc.py,
src/docgen/OpenOfficeDoc.py, src/docgen/PdfDoc.py,
src/docgen/RTFDoc.py: Translate type descriptions; correct print_label.


svn: r3491
2004-08-23 17:30:47 +00:00
Alex Roitman
5e49c95b5b Update
svn: r3490
2004-08-23 17:04:58 +00:00
Alex Roitman
7eada1b47d * src/plugins/Ancestors.py (event_info): Check whetehr place
exists before getting its title (#1014412).


svn: r3489
2004-08-23 17:04:14 +00:00
Alex Roitman
934a763ae2 * src/plugins/DetAncestralReport.py (write_children):
Check whether event exists (#1014414).
* src/plugins/IndivComplete.py (write_alt_names): Correct the
use of handle (#1014411); (write_fact, write_sources, write_person):
Use gramps id, not handle, for displaying source references.


svn: r3488
2004-08-23 16:59:13 +00:00
Alex Roitman
ab83541b89 * src/EdirPerson.py (__init__): Use handle instead of ID (#1014224).
svn: r3487
2004-08-23 16:27:02 +00:00
Alex Roitman
87eb0778e2 * src/NameEdit.py: Proper use of ComboBoxEntry widgets (#1014238).
svn: r3486
2004-08-23 16:22:38 +00:00
Alex Roitman
acde3be300 * src/RelLib.py: (probably_alive): Fixed typo (bug #1014223).
svn: r3485
2004-08-23 16:05:22 +00:00
Tim Waugh
5d1c8f45e2 2004-08-23 Tim Waugh <twaugh@redhat.com>
* install-sh: Removed this generated file.


svn: r3484
2004-08-23 15:43:27 +00:00
Tim Waugh
237ff088c7 2004-08-23 Tim Waugh <twaugh@redhat.com>
* src/WriteGedcom.py (GedcomWriter.write_sources): Write sources
        in ID order for easier change tracking.


svn: r3483
2004-08-23 11:26:24 +00:00
Tim Waugh
aaf6a71702 (XmlWriter.write_ref): Fixed typo.
svn: r3482
2004-08-23 11:14:38 +00:00
Tim Waugh
1795b036c9 2004-08-23 Tim Waugh <twaugh@redhat.com>
* src/GrampsDbBase.py (GrampsDbBase.find_source_from_handle): Set
        GRAMPS ID on new source (bug #1014246).


svn: r3481
2004-08-23 10:42:36 +00:00
Don Allingham
f8b1715b41 * src/Marriage.py: pychecker fixes
* src/RelLib.py: pychecker fixes
* src/SelectChild.py: pychecker fixes
* src/SelectObject: pychecker fixes
* src/SourceView.py: pychecker fixes
* src/Sources.py: pychecker fixes
* src/StyleEditor.py: pychecker fixes
* src/TarFile.py: pychecker fixes
* src/TipOfDay.py: pychecker fixes
* src/Utils.py: pychecker fixes
* src/WriteXML.py: pychecker fixes


svn: r3480
2004-08-22 23:16:57 +00:00
Tim Waugh
b9c493f2af 2004-08-23 Tim Waugh <twaugh@redhat.com>
* src/WriteGedcom.py (GedcomWriter.write_families): Write families
        in GRAMPS ID order for easier change tracking.


svn: r3479
2004-08-22 23:11:30 +00:00
Tim Waugh
8e5fde6f38 (GedcomWriter.fid): Use GRAMPS ID not DB handle.
svn: r3477
2004-08-22 16:33:31 +00:00
Tim Waugh
8afdb56aee * src/WriteGedcom.py (GedcomWriter.export_data): Write individuals
out in GRAMPS ID order.


svn: r3476
2004-08-22 16:30:43 +00:00
Tim Waugh
3660a257ed 2004-08-22 Tim Waugh <twaugh@redhat.com>
* src/ReadXML.py (GrampsParser.start_object): Set GRAMPS ID.


svn: r3474
2004-08-22 16:18:33 +00:00
Tim Waugh
49e9629d04 (XmlWriter.write_xml_data): Fixed families output by preventing
confusion between handles and GRAMPS IDs.


svn: r3473
2004-08-22 12:52:33 +00:00
Tim Waugh
53f650655a (XmlWriter.write_family_handle): Use GRAMPS ID not DB handle.
(XmlWriter.write_xml_data): Sort family IDs before writing.


svn: r3472
2004-08-22 12:45:47 +00:00
Tim Waugh
243aacca4f (XmlWriter.write_xml_data): Fixed people output by preventing
confusion between handles and GRAMPS IDs.


svn: r3471
2004-08-22 12:37:44 +00:00
Tim Waugh
89ca5db49f (XmlWriter.write_xml_data): Sort person handles before writing.
svn: r3470
2004-08-22 12:21:01 +00:00
Tim Waugh
f581818afa 2004-08-22 Tim Waugh <twaugh@redhat.com>
* src/WriteXML.py (write_xml_data): Fixed typo causing XML export to
        omit all place definitions.


svn: r3469
2004-08-22 12:06:19 +00:00
Tim Waugh
afbd8750aa 2004-08-22 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (probably_alive): Fixed typo (bug #1012347).


svn: r3468
2004-08-22 09:15:26 +00:00
Alex Roitman
74c1a75bfe * src/WriteGedcom.py (write_sources, write_person, write_ord):
Use gramps id instead of handle.
* src/GenericFilter.py: Check object for being not None.


svn: r3467
2004-08-22 05:33:37 +00:00
Alex Roitman
136d64ab89 * src/plugins/Check.py: Import const module.
* src/PedView.py: Add person to the list even if there are no parents.


svn: r3466
2004-08-22 01:41:53 +00:00
Alex Roitman
076fa45195 * src/ReadGedcom.py (parse_record, parse_individual, parse_ord,
parse_adopt_event): Don't include "@" signs into family gramps id.
* src/PedView.py (find_tree): Correctly retrieve parents.


svn: r3465
2004-08-21 20:43:34 +00:00
Alex Roitman
5222330f5c * src/plugins/Verify.py (on_apply_clicked): Use gramps id for
display; (get_year): Corrections.


svn: r3464
2004-08-21 19:09:52 +00:00
Alex Roitman
1790aef639 * src/GrampsDbBase.py (find_event_from_handle):
Add transaction argument


svn: r3463
2004-08-21 18:58:19 +00:00
Alex Roitman
a75338f737 * src/AddSpouse.py, src/ChooseParents.py, src/EditPerson.py,
src/EditPlace.py, src/EditSource.py, src/EventEdit.py,
src/FamilyView.py, src/GenericFilter.py,
src/Marriage.py, src/PedView.py, src/PeopleModel.py,
src/PlaceView.py, src/RelLib.py, src/SelectChild.py,
src/Sort.py, src/SourceView.py, src/SubstKeywords.py,
src/WriteGedcom.py, src/WriteXML.py, src/plugins/AncestorReport.py,
src/plugins/Ancestors.py, src/plugins/ChangeTypes.py,
src/plugins/DescendReport.py, src/plugins/DetDescendantReport.py,
src/plugins/EventCmp.py, src/plugins/FamilyGroup.py,
src/plugins/FanChart.py, src/plugins/FtmStyleAncestors.py,
src/plugins/FtmStyleDescendants.py, src/plugins/GraphViz.py,
src/plugins/IndivComplete.py, src/plugins/IndivSummary.py,
src/plugins/Merge.py, src/plugins/RelCalc.py, src/plugins/RelGraph.py,
src/plugins/Summary.py, src/plugins/TimeLine.py, src/plugins/Verify.py,
src/plugins/WebPage.py, src/plugins/WriteCD.py,
src/plugins/WritePkg.py, src/plugins/DetAncestralReport.py:
Use get_event_from_handle (not find_ ).


svn: r3462
2004-08-21 18:56:01 +00:00
Alex Roitman
55a76f77e1 * src/ReadGedcom.py (parse_record): Get objects from handles;
(handle_source): Refer to handle, not the object;
(parse_source): Use gramps id (not handle) to form the title.
* src/GrampsDbBase.py (get_person_from_handle): Typo;
(find_event_from_handle): Correctly create new event if not found.
* src/Sources.py (draw): Correctly sort, use gramps id when
displaying sources; (redraw): Use gramps id in the list view.


svn: r3461
2004-08-21 18:13:18 +00:00
Alex Roitman
4a41bfa1a0 * src/data/gramps.schemas: Add /apps/gramps/interface/size-checked key.
* src/GrampsCfg.py (get_screen_size_checked,
save_screen_size_checked): Add functions.
* src/gramps_main.py: Enable sidebar depending on the screen
if the screen size has not been checked yet.
* src/ChooseParents.py: Set the size request depending on the screen.
* src/Marriage.py: Set the size request depending on the screen.
* src/gramps.glade (marriageEditor): Unset the height request
for the event list.


svn: r3459
2004-08-21 04:33:55 +00:00
Don Allingham
3e5827b671 * src/gramps_main.py: update family display after EditPerson
* src/EditPerson.py: fix callback


svn: r3456
2004-08-21 03:36:00 +00:00
Alex Roitman
37b30dbc2c * src/plugins/Verify.py (on_apply_clicked): Append warnings
to errors instead of overwriting; determine actual dates of burial
and baptism; (get_year): Correctly compare calendar names.
* src/plugins/rel_it.py: removed translatable strings (should be
already italian).
* src/plugins/IndivComplete.py (_get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/RelGraph.py (get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/TimeLine.py (_get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/WebPage.py (get_report_filters):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/WriteFtree.py (__init__):
Set both ancestor and descendant filters to be inclusive.
* src/plugins/Ancestors.py (person_name): Use translated name type.


svn: r3454
2004-08-20 21:55:29 +00:00
Alex Roitman
fe4427adf8 * src/WriteGedcom.py (get_option_box): Make filters inclusive.
* src/plugins/merge.glade: Switch button order to comply with HIG.
* src/mergedata.glade: Switch button order to comply with HIG.
* src/plugins/RelGraph.py (get_default_basename): Add function.
* src/plugins/AncestorReport.py (write_report): Translate
string properly.
* src/EventEdit.py (update_event): Use transtable.
* src/EditPerson.py (on_event_add_clicked, on_edit_birth_clicked,
on_edit_death_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/Marriage.py (on_add_clicked, on_event_update_clicked):
Pass TransTable to the event editor.
* src/plugins/FtmStyleAncestors.py,
src/plugins/FtmStyleDescendants.py:
Remove extra space between vars in "%(.*_place)s %(.*_notes)s"
* src/plugins/verify.glade: Translate button label.
* src/plugins/IndivSummary.py: Proper handling of translation.
* src/docgen/OpenOfficeDoc.py (pt2cm): Add function;
(draw_text): Convert points to cm for the box width;
 Use self.string_width() method.
* src/BaseDoc.py (string_width): Add a method to compute width.
* src/docgen/LPRDoc.py (string_width): Override method.
* src/docgen/PdfDoc.py: Use self.string_width() method.
* src/docgen/SvgDrawDoc.py: Use self.string_width() method.
* src/plugins/AncestorChart2.py: Use self.doc.string_width() method.
* src/plugins/AncestorChart.py: Use self.doc.string_width() method.
* src/plugins/DesGraph.py: Use self.doc.string_width() method.
* src/plugins/FanChart.py: Use self.doc.string_width() method.
* src/plugins/TimeLine.py: Use self.doc.string_width() method.
* src/plugins/eval.glade: HIG compliance.


svn: r3453
2004-08-20 21:26:51 +00:00
Alex Roitman
0dd92d0a5c * src/plugins/rel_da.py: Convert to new interface. Add to CVS.
* src/plugins/rel_fi.py: Convert to new interface. Add to CVS.
* src/plugins/rel_fr.py: Convert to new interface. Add to CVS.
* src/plugins/rel_no.py: Convert to new interface. Add to CVS.
* src/plugins/rel_sv.py: Convert to new interface. Add to CVS.
* src/plugins/Makefile.am: Ship new files.
* src/Relationship.py (apply_filter): Keep gender info of all
member in the relationship chain, not just number of generations;
(is_spouse): correctly compare handles; (get_relationship_distance,
get_relationship, get_grandparents_string): correctly use apply_filter.
* src/plugins/rel_it.py (get_relationship): Correctly use apply_filter.
* src/plugins/rel_hu.py (get_relationship): Correctly use apply_filter.
* src/plugins/rel_de.py (is_spouse): Remove function;
(get_relationship): Correctly use apply_filter.
* src/plugins/rel_ru.py (is_spouse): Remove function;
(get_relationship): Correctly use apply_filter.


svn: r3452
2004-08-20 19:10:01 +00:00
Tim Waugh
a79457e20b 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (Event.are_equal): Fixed comparison with None.


svn: r3451
2004-08-20 13:44:48 +00:00
Don Allingham
f741527b55 * src/plugins/RelCalc.py: use empty string instead of None
* src/EditPerson.py: pychecker fixes
* src/EditPlace.py: pychecker fixes
* src/EditSource.py: pychecker fixes
* src/GenericFilter.py: pychecker fixes
* src/GrampsCfg.py: pychecker fixes
* src/ImageSelect.py: pychecker fixes
* src/ListModel.py: pychecker fixes
* src/MediaView.py; pychecker fixes
* src/MergeData.py: pychecker fixes
* src/PedView.py: pychecker fixes
* src/PeopleView.py: pychecker fixes
* src/PlaceView.py: pychecker fixes
* src/Plugins.py: pychecker fixes
* src/RelImage.py: pychecker fixes
* src/Relationship.py: pychecker fixes


svn: r3450
2004-08-20 12:11:56 +00:00
Tim Waugh
7a22617b52 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/plugins/RelCalc.py (__init__): Handle unknown birth dates.


svn: r3449
2004-08-20 11:58:06 +00:00
Tim Waugh
fad53895fe 2004-08-20 Tim Waugh <twaugh@redhat.com>
* src/Calendar.py (calendar_names): Fixed typo.


svn: r3448
2004-08-20 11:14:15 +00:00
Don Allingham
c38890095d * src/AutoComp.py: remove double display of data
* src/FamilyView.py: remove unused check
* src/GrampsBSDDB.py: search by gramps_id
* src/GrampsDbBase.py: search by gramps_id, unicode/str conversions
* src/Marriage.py: handle gramps_id editing
* src/ReadXML.py: fix handle/gramps_id on import
* src/plugins/RelCalc.py: display date instead of event handle
* src/Relationship.py: family handles working
* src/PeopleModel.py: comment out unused functions
* src/PeopleModel.py: simplify model interface
* src/AddSpouse.py: get_family_from_handle fixes
* src/EditPerson.py: get_family_from_handle fixes
* src/EditSource.py: get_family_from_handle fixes
* src/GraphLayout.py: get_family_from_handle fixes
* src/ImageSelect.py: get_family_from_handle fixes
* src/MediaView.py: get_family_from_handle fixes
* src/MergeData.py: get_family_from_handle fixes
* src/PlaceView.py: get_family_from_handle fixes
* src/ReadXML.py: get_family_from_handle fixes
* src/RelLib.py: get_family_from_handle fixes
* src/Relationship.py: get_family_from_handle fixes
* src/SelectChild.py: get_family_from_handle fixes
* src/SourceView.py: get_family_from_handle fixes
* src/SubstKeywords.py: get_family_from_handle fixes
* src/WriteXML.py: get_family_from_handle fixes
* src/gramps_main.py: get_family_from_handle fixes


svn: r3446
2004-08-20 02:20:06 +00:00
Don Allingham
bfc08ca83a * PeopleModel.py: simplify model interface
* EditPerson.py: get_family_from_handle fixes
* EditSource.py: get_family_from_handle fixes
* GraphLayout.py: get_family_from_handle fixes
* ImageSelect.py: get_family_from_handle fixes
* MediaView.py: get_family_from_handle fixes
* MergeData.py: get_family_from_handle fixes
* PlaceView.py: get_family_from_handle fixes
* ReadXML.py: get_family_from_handle fixes
* RelLib.py: get_family_from_handle fixes
* Relationship.py: get_family_from_handle fixes
* SelectChild.py: get_family_from_handle fixes
* SourceView.py: get_family_from_handle fixes
* SubstKeywords.py: get_family_from_handle fixes
* WriteXML.py: get_family_from_handle fixes
* gramps_main.py: get_family_from_handle fixes
* plugins/AncestorChart.py: get_family_from_handle fixes
* plugins/AncestorChart2.py: get_family_from_handle fixes
* plugins/AncestorReport.py: get_family_from_handle fixes
* plugins/Ancestors.py: get_family_from_handle fixes
* plugins/Check.py: get_family_from_handle fixes
* plugins/CountAncestors.py: get_family_from_handle fixes
* plugins/Desbrowser.py: get_family_from_handle fixes
* plugins/DescendReport.py: get_family_from_handle fixes
* plugins/DetAncestralReport.py: get_family_from_handle fixes
* plugins/DetDescendantReport.py: get_family_from_handle fixes
* plugins/FamilyGroup.py: get_family_from_handle fixes
* plugins/FanChart.py: get_family_from_handle fixes
* plugins/FtmStyleAncestors.py: get_family_from_handle fixes
* plugins/FtmStyleDescendants.py: get_family_from_handle fixes
* plugins/GraphViz.py: get_family_from_handle fixes
* plugins/IndivComplete.py: get_family_from_handle fixes
* plugins/IndivSummary.py: get_family_from_handle fixes
* plugins/Merge.py: get_family_from_handle fixes
* plugins/RelGraph.py: get_family_from_handle fixes
* plugins/Verify.py: get_family_from_handle fixes
* plugins/WebPage.py: get_family_from_handle fixes
* plugins/WriteCD.py: get_family_from_handle fixes
* plugins/WritePkg.py: get_family_from_handle fixes
* plugins/rel_de.py: get_family_from_handle fixes
* plugins/rel_hu.py: get_family_from_handle fixes
* plugins/rel_ru.py: get_family_from_handle fixes


svn: r3443
2004-08-19 21:35:16 +00:00
Tim Waugh
2f7713e586 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/RelLib.py (probably_alive): Use get_family_from_handle instead
        of find_family_from_handle.


svn: r3441
2004-08-19 17:07:37 +00:00
Tim Waugh
3fa7d9d620 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/WriteGedcom.py (get_persons_sources): Remove extra calls to
        get_handle() to prevent traceback.


svn: r3440
2004-08-19 17:04:55 +00:00
Don Allingham
d9a18f1aa8 * src/DisplayModels.py: simplify internal iter handling.
Move to a single list instead of multiple dictionaries.


svn: r3439
2004-08-19 16:49:16 +00:00
Tim Waugh
376924ab95 2004-08-19 Tim Waugh <twaugh@redhat.com>
* src/gramps_main.py (import_tool_callback): Set home person.


svn: r3438
2004-08-19 16:35:07 +00:00