Commit Graph

2064 Commits

Author SHA1 Message Date
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
a32207e5c5 update
svn: r3549
2004-09-17 04:32:01 +00:00
Don Allingham
b0457d5439 update
svn: r3548
2004-09-17 04:26:25 +00:00
Don Allingham
73c7b86818 removed
svn: r3547
2004-09-17 04:25:16 +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
Tim Waugh
574db1bd17 Update MIME database in scriptlets.
svn: r3522
2004-08-31 17:48:21 +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
Matthieu Pupate
990b9faf7b Corrected some errors
svn: r3512
2004-08-25 20:28:42 +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