Commit Graph

2066 Commits

Author SHA1 Message Date
Alex Roitman
8902c3e35e Update
svn: r3564
2004-09-21 01:24:32 +00:00
Alex Roitman
ab54e0b1b1 * src/DateEdit.py: Use new Date's set() method. Enable help.
svn: r3563
2004-09-21 01:19:55 +00:00
Alex Roitman
7b09866289 * 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
cffb5833a7 * 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
a9141f7158 * 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
f0d19d0d5a * 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
ffab4c0990 * 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
030aa36011 * 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
894619e016 * 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
4e43d89fe3 * 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
e809a69b41 * 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
f50bde5d49 * src/DateParser.py: Minor cleanup.
svn: r3553
2004-09-18 04:11:48 +00:00
Alex Roitman
35ba39caf3 * 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
b043f908da * src/gramps.glade: replace LED indicators with buttons
svn: r3551
2004-09-18 02:50:30 +00:00
Don Allingham
c3c613e278 * 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
ed495982a5 update
svn: r3549
2004-09-17 04:32:01 +00:00
Don Allingham
f19010baa9 update
svn: r3548
2004-09-17 04:26:25 +00:00
Don Allingham
71a227aed6 removed
svn: r3547
2004-09-17 04:25:16 +00:00
Don Allingham
bd16bbd244 * 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
1816c3d20e 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
dc9c4b26bc 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
3a66750eb5 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
977e7b9a66 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
f3b80ac6b0 * 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
a8b3854d96 * src/GrampsDbBase.py: Fix assert statements.
svn: r3533
2004-09-10 22:40:00 +00:00
Alex Roitman
451d5b1773 * src/gramps.glade: Typo.
svn: r3532
2004-09-09 14:46:40 +00:00
Alex Roitman
2074bec9ce * 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
4c3a6b9167 * src/EditPlace.py (on_web_go_clicked): Typo.
svn: r3528
2004-09-01 15:11:10 +00:00
Alex Roitman
bc74845212 * 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
de4853eeec * 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
aab141fb5c * 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
32de1842ed Update MIME database in scriptlets.
svn: r3522
2004-08-31 17:48:21 +00:00
Don Allingham
bc0e50c8f0 * 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
0e4693a675 * 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
8ce99f9853 * 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
684d47f512 * 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
e27c787955 * 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
dda871049e 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
2be6aaa660 * 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
1dc536fd60 * 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
e3f151a7a8 * 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
a85f871f8c Corrected some errors
svn: r3512
2004-08-25 20:28:42 +00:00
Tim Waugh
434181bd32 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
2523c7abf8 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
6223685b34 * 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
b85614c491 * 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
3b7c81fbe7 * 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
a0fd5337d7 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
6221d356e6 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
ad7f65dec7 * 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