Commit Graph

1470 Commits

Author SHA1 Message Date
Nick Hall
9ecc665625 5123: Fix bug in associations filter 2014-01-22 16:15:05 +00:00
Jérôme Rapinat
044a507453 7361: Do not save column order if there is not at least one column 2014-01-22 14:48:07 +01:00
Theophraste
313eb9ba07 5775: ID reorder tool doesn't update citation IDs
reapplied from gramps34
2014-01-21 21:52:24 +02:00
Josip
f829e550a0 7378: Starting Gramps without console not possible 2014-01-21 19:37:28 +01:00
Josip
f8059fd10c 7313: 'utf8' codec can't decode byte 0xa0 in position 6: invalid start byte 2014-01-21 19:23:54 +01:00
Jérôme Rapinat
0e6b73382f 7404: update docstring 2014-01-21 15:33:15 +01:00
Vassilii Khachaturov
d72fbdae48 7317,7360: also use 'value-changed' signal
With gtk3 controls, the day/year changes aren't caught otherwise
2014-01-21 16:05:55 +02:00
Vassilii Khachaturov
55a0cc990f 7360: Calendar conversion broken in date editor
Port my fix from gramps34: [ecdcca] [aa9deb]
The enable/disable code behaves worse under gtk3, need further polish
(this is not related to the current fix). Sometimes the changes
to the d/m/y edit fields don't fire the "changed" signal with the
UI value seen by build_date_from_ui
2014-01-21 12:30:56 +02:00
Nick Hall
22b71da84b Update test case generator for new place structure 2014-01-21 00:45:04 +00:00
Nick Hall
7b05c1944b Fix bugs in the test case generator 2014-01-21 00:45:04 +00:00
Vassilii Khachaturov
c574f3a767 l10n: trying to add context for "Name:"
"Name" as in "Personal name" is different from "Name" as in
"identification of a repository" or in "place name", at least
in Russian. Splitting away "repo|Name:" and "place|Name:"

We need to dynamically set the labels in glade.
See gramps-devel thread "context support for labels in glade?"
2014-01-20 20:19:50 +02:00
Jérôme Rapinat
5a6d100629 7370: entries were set twice 2014-01-17 21:16:07 +01:00
Jérôme Rapinat
42d1f0947b 7370: Citation sidebar filter raises unicode exception with python3 2014-01-17 18:05:56 +01:00
Jérôme Rapinat
bdbdfad557 7134: fit encoding selector dialog 2014-01-17 18:02:25 +01:00
Jérôme Rapinat
2301310eb3 Use sgettext for handling context (english locale) 2014-01-17 18:02:24 +01:00
Jérôme Rapinat
b072b88425 Update About dialog (2013 -> 2014) 2014-01-17 18:02:24 +01:00
Doug Blank
24d9e001a5 6690: Not being able to write a .gramps produces a scary message about DB corruption 2014-01-17 07:45:08 -05:00
Benny Malengier
e70849f4f0 7157: better support for objects having citations as subobjects 2014-01-15 09:33:30 +01:00
Jérôme Rapinat
d96b0ee74c 7331: Events and Children selectors don't use all available space of dialog box; 3.6 < gtk+ < 3.10; patch by BennyP (missing on author list) 2014-01-15 09:10:57 +01:00
Jérôme Rapinat
45c48f4f94 7157: typo by adding 'Last Change' column 2014-01-10 12:03:41 +01:00
Doug Blank
01da495ede Delete items in list by assigning Null 2014-01-09 10:43:05 -05:00
Doug Blank
946a213fbc Allow calling lists to select and filter 2014-01-08 10:22:32 -05:00
Doug Blank
37ba4122ba SQL-like allows selection and filter of elements in a list using attr.attr('part', part=value) 2014-01-07 21:46:55 -05:00
John Ralls
3b3a0338a3 Bug 7363: file-not-found exception when generating narrative web
document.png is in images/ not images/webstuff/
2014-01-07 10:30:15 -08:00
Doug Blank
0ff5aa88ad 7357: Adding link to a "Html code" note using the "Link" button has no effect 2014-01-07 10:48:56 -05:00
Vassilii Khachaturov
b2f41ab563 strip redundant trailing ' in 2 localized messages 2014-01-07 17:30:33 +02:00
Vassilii Khachaturov
ca57d2d4f4 l10n: need to disambiguate "New" at least for RU 2014-01-07 17:12:48 +02:00
Josip
bfbf5d01f4 7179: Select an existing person causes crash in searchfilter
refix, aplay only to Windows
2014-01-06 21:08:40 +01:00
Josip
568b4ee4a4 7179: Select an existing person causes crash in searchfilter 2014-01-06 20:53:15 +01:00
Josip
b0c0c03727 7339: Spell: Gramps crashes if myspell folder doesn't contain files for
the currently used LANG

With patch works like:
* default to dictionary in system locale if exist (language Gramps use)
* if no system-locale dictionary default to English dictionary if exist but
    allow selection of any other installed one
* if both English and system-locale dictionary is not available,
    disable spellchecking
2014-01-06 20:19:25 +01:00
Jérôme Rapinat
a0210fc1f8 5024: add 'Last Change' column on selectors, if missing 2014-01-06 16:52:19 +01:00
Vassilii Khachaturov
aa7e043f2d 7336: Gramps changes root cursor to hand
Following the suggestion from QuLogic, change get_root_window
to get_window for the set_cursor scope, like in my #6740 fix.
2014-01-04 21:18:18 +02:00
Nick Hall
703a8d71ae Add new columns to person view 2014-01-03 22:39:17 +00:00
Nick Hall
a2dfd9013e 7340: Performance improvement in ancestor filter 2013-12-31 17:36:58 +00:00
Vassilii Khachaturov
7c383cb70c 7172: more meaningful LOG warning plug/utils.py
Reapply [5c467c] from gramps34
2013-12-30 11:11:11 +02:00
Vassilii Khachaturov
0e534e598e 6380: GEDCOM export error for family _UID
Port gramps34 [429c18]
    Applying patch from 2013-12-24 by Enno Borgsteede,
    fixing attribute processing on the path that handled _UID
    and adding another extension, _FSFTID.
2013-12-30 11:05:02 +02:00
Vassilii Khachaturov
aa3a3c8270 7327: friendlier diagnostics during parsing
In preparation for fixing the bug, discovered minor glitches
in the open/lock/close logic on error paths. Using the RAII syntax
for xml_file and removing redundant unlock-before-close.

The parse errors now have friendlier verbiage, give action suggestions,
and point to the actual file location for better usability and
maintainability.
2013-12-28 22:22:52 +02:00
Doug Blank
5b17d597fe Experimental subselection in list using list['field1, field2'] 2013-12-28 14:34:00 -05:00
Doug Blank
cad20f42f1 Allow an attribute lookup on a list to select from the list 2013-12-28 13:32:15 -05:00
Doug Blank
2a4ba037c6 Fixed RefBase.to_struct in gen.lib objects 2013-12-28 10:11:43 -05:00
Doug Blank
c07aebd7d0 Error in schema 2013-12-27 18:28:04 -05:00
Doug Blank
4e9559c6eb Added link keyword to row method of SimpleTable 2013-12-27 10:43:51 -05:00
Doug Blank
8026a9aa1f Handle update set anywhere in struct 2013-12-27 01:56:33 -05:00
Doug Blank
feaf10b8c9 Add batch to DictionaryDB; update Query updates in batch mode 2013-12-26 16:16:57 -05:00
Doug Blank
f7a367e602 Fixed Gtk3 buffer.get_text issue 2013-12-26 16:16:07 -05:00
Doug Blank
c66e4b0149 Removed handling of control+v from default pageview handler that was only used in places where it shouldn't (dashboard) 2013-12-26 15:08:08 -05:00
Nick Hall
a6e4bf9cc5 7333: Reduce number of columns in LDS temple selector 2013-12-26 17:31:02 +00:00
Doug Blank
579f17a687 Revised Struct get and set now that Python handles lookup through eval; general cleanup 2013-12-26 11:32:00 -05:00
Vassilii Khachaturov
aa81f62b4a 6955: warn on non-primary surnames not exported
reapply from gramps34
2013-12-26 17:47:27 +02:00
Doug Blank
7b9fa14ef7 Cleanup, all selects, and deletes working 2013-12-26 00:18:39 -05:00
Doug Blank
6528044b1c Different in getitem depending on whether assignment, or lookup; fixed from_struct on BaseRef 2013-12-25 18:02:48 -05:00
Doug Blank
7224bda047 Removed getitem_from_path---now uses eval() [eg, __getitem__] for such functions 2013-12-25 16:48:40 -05:00
Doug Blank
7daf720ee7 Error in using transactions 2013-12-24 20:40:56 -05:00
Doug Blank
2fb9f2ffa0 Working in remove in dictionaryDB; fix for Dictionary Cursors 2013-12-24 11:24:02 -05:00
Doug Blank
90eda9d89c Added missing get-all methods 2013-12-24 10:39:44 -05:00
Doug Blank
a050704299 Protection from fields that are None in Struct 2013-12-24 09:30:39 -05:00
Doug Blank
ce07c7e15f Added missing Handle in to_struct in refbase 2013-12-24 09:28:37 -05:00
Doug Blank
a72c6eac96 Don't go through loop if not Python 3; fixed typo 2013-12-23 15:19:18 -05:00
Doug Blank
6e325a9190 Allow update_db to work with existing transaction; setitem now works; getitem will return Struct only when more struct 2013-12-23 13:58:23 -05:00
Doug Blank
27453a7587 Added remove_func to _tables; added remove_from_database(item) 2013-12-23 13:56:25 -05:00
Jérôme Rapinat
5586474ec5 7316: use ellipsize at the begining adjusts text and make missing media dialog more fit 2013-12-23 14:19:55 +01:00
Nick Hall
dd56299936 Enhance event type selector to use sub-menus 2013-12-22 19:58:25 +00:00
Nick Hall
e7c5f1684e Add custom types to selection widgets 2013-12-22 19:58:25 +00:00
Jérôme Rapinat
d9db6168b3 6926: more Germanic names established by the Emperor Charlemagne in the 800s 2013-12-22 15:52:58 +01:00
Vassilii Khachaturov
a3c59778f9 7317: DateEdit statusbar to report invalid dates
Port [6b0b9f] from gramps34
    Add/remove an explanatory prompt on the statusbar along
    with disabling/enabling the "OK" button when the date
    is invalid.
2013-12-21 23:13:58 +02:00
Vassilii Khachaturov
087a7ecad2 7317: DateEdit statusbar to report invalid dates
Port [0c80c5] from gramps34
    add the status bar to the date editor dialog
2013-12-21 23:13:58 +02:00
Doug Blank
f5336d2296 unicode literals for {} formats 2013-12-20 11:59:07 -05:00
Doug Blank
a859b5f562 Added unicode_literals; thanks Nick 2013-12-20 11:14:32 -05:00
Doug Blank
59ac850d9a Changes for Python client to login and exchange webapp server data 2013-12-20 08:14:11 -05:00
Doug Blank
6aaf932a61 Added http://URL?format=json version to use same URLs but to get JSON format (works on primary detail views); see also http://URL/json?q=SEARCH&field=person for query interface 2013-12-20 01:33:30 -05:00
Doug Blank
fe6806de57 Ability to use 'where ITEM in part.part.part' for the Query Gramplet 2013-12-20 01:28:54 -05:00
Doug Blank
4051984031 Person.save() now also computes probably_alive (but only when computing cache, too) 2013-12-20 00:21:05 -05:00
Doug Blank
e649e5514d Changed {} format 2013-12-20 00:18:46 -05:00
Doug Blank
aa96ebc333 Updates to webapp: move cache updates to save of models to make it so that they cannot become out of sync with data; moved svg images to png forms to work with all browsers 2013-12-19 22:55:14 -05:00
Doug Blank
ab46727c56 Changes in Struct to allow SQL-like query interface 2013-12-19 22:52:04 -05:00
Doug Blank
870f776fa5 Merge branch 'master' of ssh://git.code.sf.net/p/gramps/source 2013-12-19 22:50:34 -05:00
Doug Blank
0d5e006953 Added meta settings to make sure they are bound to correct methods (of the proxies) rather than actual db methods 2013-12-19 22:50:16 -05:00
Vassilii Khachaturov
8686028413 add specific help links for person/name editor 2013-12-19 19:47:32 +02:00
Jérôme Rapinat
46b3c44916 7147 7001: Merge person dialog does not properly adjust context section after expand 2013-12-17 15:10:48 +01:00
Vassilii Khachaturov
56965d4095 7229: change active person upon a bookmark select
Port the more general fix [c7c0b2]^..[6caf08] from gramps34.
2013-12-16 21:57:31 +02:00
Doug Blank
0254f7006d Remove duplicate line 2013-12-15 10:47:26 -05:00
Doug Blank
cdefb047ef Fix for deleting tags in people model; fix for calendar graphical report when too many 2-line entries in day 2013-12-15 10:40:18 -05:00
Vassilii Khachaturov
be0239d255 7288/7290: port image_dpi legacy gtk code to gtk3 2013-12-15 15:09:12 +02:00
Vassilii Khachaturov
996baaad14 7288/7290: image_dpi and cropping fixes for ODFdoc
Port my fixes based on the patch from Matthias Basler from gramps34
[2eca30] 7290: use simpler math in image_dpi
[2f5e22] 7290: align warning with the image_dpi fix logic
[36f84e] 7290: image_dpi default calc based on gtk.gdk
[161ce3] 7290: ImgManip.image_dpi shouldn't return None
[460e63] 7288/7290 refactor out crop_percentage_to_pixel
[a8a38f] 7288/7290 refactor out crop_percentage_to_subpixel
[0d61bb] 7288/7290: refactor fix from matthiasbasler
[088146] rm relict RCS kwd
[76df5d] 7288/7290: image cropping fixes in ODFDoc

Using legacy gtk interface in image.py at the moment, need to port
to the new style.

Tested with python2.
2013-12-15 15:09:12 +02:00
Vassilii Khachaturov
584612d9f4 7229: change active person upon a bookmark select
Reapply my fix [88d2a2] from gramps34.
2013-12-14 17:58:49 +02:00
Vassilii Khachaturov
be8515909d 6921: Use "Bat Mitzvah" as the en_US event name
Port [0021e8] from gramps34:
p1/3: actual change in the code. Note that the abbreviation
also has to be changed accordingly.
2013-12-14 17:13:35 +02:00
Vassilii Khachaturov
744ec69349 7300: "Add citation" missing in pop-up menu 2013-12-14 16:35:37 +02:00
Vassilii Khachaturov
f3cda2d5e0 absolute import so that testing stdalone works 2013-12-14 16:29:34 +02:00
Vassilii Khachaturov
6895e4492f 7086: "Remove selected items?" inconsistent YES/NO 2013-12-05 17:14:07 +02:00
Vassilii Khachaturov
64cd25b8e1 7256: extra spaces in HTML GV labels 2013-11-28 23:12:46 +02:00
noirauds
21e33de953 Geography : bug7240 : create a bookmark via GeoEvents leads to an empty link 2013-11-27 21:23:29 +01:00
Vassilii Khachaturov
b4404ad392 use logging.warning in old cases in this file, too 2013-11-27 17:57:50 +02:00
Vassilii Khachaturov
8299866f3c 7212: convert invalid date to text on .gw import
Implement the feature.
2013-11-27 17:56:09 +02:00
Vassilii Khachaturov
1ac0e2a0bc 7212: convert invalid date to text on .gw import
Add a failing test demonstrating the feature to be implemented...
2013-11-27 17:54:44 +02:00
Vassilii Khachaturov
3af50b0bea 7212: convert invalid date to text on import
Consolidate the new logic with the older code -- now malformatted
dates, as well as well-formatted invalid ones, will also be
converted to text.
2013-11-25 12:39:46 +02:00
Vassilii Khachaturov
b3259d0a00 7212: convert invalid date to text on import
Switch vcard birthday import code to use the validating Date.set
and catch the exception, convert to text mode if caught.
2013-11-25 12:39:46 +02:00
Vassilii Khachaturov
4d9381589a 7212: convert invalid dates to text on import
Make log message from [dfc3cc] use named arguments for l10n.
Thanks to Paul Franklin for finding this during code review.
2013-11-25 10:55:07 +02:00
Vassilii Khachaturov
3fdaa4ff52 7198, 7212: document DateError.date
See also [8e1659]
    7198, 7212: attach invalid date to DateError
2013-11-23 21:43:42 +02:00
Vassilii Khachaturov
175213b902 remove DateError from date.py
The exact copy existing in errors.py should suffice.
2013-11-23 21:38:34 +02:00
Doug Blank
28095ac397 Changes to serve static admin files for Django 1.5.4 2013-11-23 08:16:52 -05:00
Vassilii Khachaturov
dfc3ccea45 7212: convert invalid dates to text on import
If the date is invalid, it will be converted to text mode,
and the text field will be set to the problematic XML.
A warning will be printed on the console as well.
The log message will use the invalid date attached as
DateError.date, see [8e1659].
2013-11-17 20:22:14 +02:00
Vassilii Khachaturov
86dc84470e 7212: convert invalid dates to text on import
unit tests
2013-11-17 20:14:17 +02:00
Vassilii Khachaturov
b770de1a10 7198: Date editor crashes on invalid date
Revalidate the date upon every change, and disable
OKing the dialog when it is not valid, for usability review.

If it is not good, we can always revert this commit.
2013-11-16 23:47:50 +02:00
Vassilii Khachaturov
b1d040deb1 7198: Date editor crashes on invalid date
give a name to the OK button instead of an autogenerated id
2013-11-16 23:16:14 +02:00
Doug Blank
e0de21041c Don't add notes etc on import into temp dictionary used for diff and sync 2013-11-16 14:13:12 -05:00
Vassilii Khachaturov
3999cd2e70 7198: Date editor crashes on invalid date
Trying out the approach preferred by Nick, see 7198:32708
2013-11-16 17:53:01 +02:00
Vassilii Khachaturov
8e16599940 7198, 7212: attach invalid date to DateError
when Date.set throws during the date fields sanity
check validation, it now attaches an (undocumented) .date field
to the exception -- proof of concept for 7198 and potentially
for 7212 as well
2013-11-16 17:51:18 +02:00
Doug Blank
a3749090aa Protect 3-min refresh if buffer is empty 2013-11-16 09:29:45 -05:00
Vassilii Khachaturov
d8acf8e875 7198: Date editor crashes on invalid date
Improve user experience as promised in [98d8e6].
Now, if one clicks OK in the date editor and the date is invalid,
it's switched into text mode and the dialog remains open,
so the user can either correct the date or type it as text,
no more loss of entered data happens.
2013-11-16 10:21:12 +02:00
Vassilii Khachaturov
98d8e64e04 7198: Date editor crashes on invalid date
Now it just autoconverts into MOD_TEXT and returns whatever
text was there. This fixes the crash on the master branch,
but is not the final user experience yet.
2013-11-15 22:26:41 +02:00
Vassilii Khachaturov
89a822507a 7198,7212: fix Date.set(value=None) 2013-11-15 22:23:54 +02:00
Nick Hall
13438a74d6 Add gui.widgets section to the documentation 2013-11-15 19:13:29 +00:00
Vassilii Khachaturov
a90139cb9a 7197, 7100: missing recalc_sort_value in ny code
Fix bug #7197
2013-11-15 15:04:03 +02:00
Vassilii Khachaturov
baae6ac615 7197: readjust sanity date wrt newyear/slash
Attempt to fix the failing
 DateHandlerTest.test_invalid_month_with_ny
(see 7197:32625). Tests still fail, investigation shows
there's a problem in Date.set setting Julian+Mar25 date even if the
date validation check is disabled by inserting a return before
the validation block, i.e., before this line
        if modifier != Date.MOD_TEXTONLY:
which seems to be the root cause of the remaining failing tests.

To investigate, add the return and try
LC_ALL=en_GB.utf8 LANG=en_GB.utf8 GRAMPS_RESOURCES=$PWD \
 python -m unittest -v \
 gramps.gen.lib.test.date_test.MatchDateTest.test_match
2013-11-14 22:51:01 +02:00
Vassilii Khachaturov
93ca90f3b8 7197: more failing tests 2013-11-14 22:51:01 +02:00
Vassilii Khachaturov
4147721112 7197: refactor code
extract Date._adjust_newyear out of Date.set
2013-11-14 22:51:00 +02:00
Vassilii Khachaturov
b3ab87bc5a 7197: refactor code
replace all copies of logging with a single point at the exception
rethrow point
2013-11-14 22:51:00 +02:00
Nick Hall
5e1cd88bcb Improve gui documentation 2013-11-14 18:11:06 +00:00
Doug Blank
2e746a21da Working on get_schema(type) to provide a self-documenting infrastructure 2013-11-14 09:23:52 -05:00
Doug Blank
97f3a1d9ae Updated Django backend to new Place changes; import/export working--need verification 2013-11-14 00:26:06 -05:00
Nick Hall
19b39b5dc0 Improve date handler documentation 2013-11-13 18:41:52 +00:00
Nick Hall
55a3c9813f Improve cli documentation 2013-11-13 17:40:16 +00:00
Vassilii Khachaturov
c4daa151a5 7197: date sanity check breaks on Julian+Mar25
Date.convert_calendar resets the new year setting to 0,
so the sanity check fails. Commit the initial fix that
unblocks the failing test.
2013-11-13 17:39:47 +02:00
Vassilii Khachaturov
78cae43a32 7197: better diagnostics from test for debugging
Use unittest -v/--verbose flag to trigger it.
2013-11-13 16:59:26 +02:00
Vassilii Khachaturov
626353a0b3 7197: failing test demonstrating the bug 2013-11-13 13:52:47 +02:00
Doug Blank
41f8df9a94 Don't show stack variables; redo this and dump to a file 2013-11-12 21:50:10 -05:00
Doug Blank
732743cec5 Missing methods on dictDB; added tests for setting struct 2013-11-12 20:09:04 -05:00
Nick Hall
3ef1c02155 Improve simple access documentation 2013-11-12 22:38:27 +00:00
Doug Blank
88f3cfa3f7 Working on setting structs 2013-11-12 17:18:06 -05:00
Nick Hall
8fd71fd9f0 Improve documentation for relationship calculator 2013-11-12 22:15:37 +00:00
Nick Hall
ceb3f44205 Improve gen.utils documentation 2013-11-12 21:44:01 +00:00
Doug Blank
2c1ba1496b Working on select/update from Struct 2013-11-12 15:24:15 -05:00
Nick Hall
f80e6422a3 Improve gen.proxy documentation 2013-11-12 18:03:20 +00:00
Nick Hall
1bd893f9f0 Improve gen.plug documentation 2013-11-12 16:28:24 +00:00
Nick Hall
37f0d9c9df Improve gen.display documentation 2013-11-12 00:12:32 +00:00
Nick Hall
6eab64c901 Improve gen documentation 2013-11-11 23:38:26 +00:00
Nick Hall
1ef6a987da Improve gen.lib documentation 2013-11-11 23:10:35 +00:00
Nick Hall
c665b8d262 Improve gen.db documentation
Convert old markup to reStructuredText.
Use warning and todo directives where appropriate.
Add some new links to classes and methods.
Use consistent case for "Gramps".
2013-11-10 23:34:10 +00:00
Doug Blank
7f2394337d get_dependencies returns a set 2013-11-10 15:59:09 -05:00
Doug Blank
49b7c09cea Revised Handle class; added get_dependencies; revised Struct class to allow changes 2013-11-10 15:17:47 -05:00
Doug Blank
b0517d0ee4 Added db.get_transaction_class to connect db and txn; refactored _tables metadata 2013-11-10 15:07:14 -05:00
Doug Blank
94dbcc5ac7 Interface for getting/setting struct parts by dotted path 2013-11-10 09:11:49 -05:00
Doug Blank
c24e037a64 Fix Handle.from_struct to return just handle 2013-11-09 23:14:11 -05:00
Doug Blank
130e2890c6 Change Handle as string to be pure JSON-like representation 2013-11-09 21:58:16 -05:00
Doug Blank
4405e32cb9 Added metadata to struct to allow object creation 2013-11-09 21:28:40 -05:00
Doug Blank
d5be60846d Undo change that made a superfluous change (extra space) to XML format 2013-11-09 19:08:09 -05:00
Doug Blank
8951d92739 Merge branch 'master' of ssh://git.code.sf.net/p/gramps/source 2013-11-09 17:00:09 -05:00
Doug Blank
8980d7be87 from_struct uses defaults from object if not given in JSON-like representation 2013-11-09 16:59:42 -05:00
Nick Hall
0f93a7170c Update url to example file 2013-11-09 19:50:42 +00:00
Doug Blank
564aaf88a7 Added from_struct to all objects; can now instatiate an object with JSON-like structs; added 10k tests that all pass 2013-11-09 10:43:30 -05:00
Doug Blank
b3f6b8f27a Change iteritems to items to allow to work with dictionaries in Python3 2013-11-09 10:41:26 -05:00
Nick Hall
9050f96dad Skip .git instead of .svn directories 2013-11-09 00:10:46 +00:00
Nick Hall
57daf4f269 Change version string to contain git hash instead of svn revision 2013-11-08 19:52:52 +00:00
Nick Hall
63578d95a0 7182: Avoid using private functions in GExiv2 > 0.5
svn: r23476
2013-11-08 09:22:35 -08:00
Doug Blank
32d71a3897 Changes for Django 1.5.4
svn: r23474
2013-11-08 09:22:12 -08:00
Nick Hall
d2bef4a698 Prevent setting place name to None
svn: r23473
2013-11-08 09:21:42 -08:00
Doug Blank
bd501a8357 Protect from no shown image yet
svn: r23467
2013-11-08 09:21:07 -08:00
Doug Blank
9670f8ff1c Don't show try to make thumbnail if not a pixbuf yet
svn: r23459
2013-11-07 11:27:23 -08:00
Doug Blank
4cbb54bd88 Added callback parameter to __init__ method so that all editors have a uniform signature (called from Note Link)
svn: r23455
2013-11-07 11:26:22 -08:00
Doug Blank
3f36cc9cdc Allow drag and drop on image
svn: r23450
2013-11-07 11:25:44 -08:00
Nick Hall
31a3f074f1 Set place type to "Unknown" when main location is missing
svn: r23448
2013-11-02 18:19:32 +00:00
Nick Hall
da7d62c65f Update Extract City tool to create a place hierarchy
svn: r23447
2013-11-02 18:14:44 +00:00
Doug Blank
ec76905791 Show local variables on unhandled crash
svn: r23446
2013-11-02 16:38:35 +00:00
Nick Hall
0fd2c1d74e Bug fix for hierarchical places
svn: r23445
2013-11-01 19:26:52 +00:00
Nick Hall
d6ae8cffb4 GEPS 6: Implement place hierarchy
svn: r23444
2013-11-01 19:13:16 +00:00
Jérôme Rapinat
8e123f8695 7151: update start of Ramadan in France
svn: r23440
2013-10-29 17:54:23 +00:00
Paul Franklin
cd63617764 typo
svn: r23437
2013-10-29 15:53:43 +00:00
Paul Franklin
fdd69173f2 enable translated output for this report (in trunk only)
svn: r23435
2013-10-29 15:31:57 +00:00
Vassilii Khachaturov
4ca39d0fff 7162: unicode_literals break win+py2
svn: r23434
2013-10-28 16:35:09 +00:00
Nick Hall
046f89a2a7 Update selection widget with latest version
svn: r23426
2013-10-27 12:59:41 +00:00
Nick Hall
767430f93f Modify media reference editor to use new selection widget
svn: r23421
2013-10-26 17:56:39 +00:00
Paul Franklin
5b31f8ce60 corrected syntax on SVN "Id" line
svn: r23420
2013-10-26 17:55:46 +00:00
Doug Blank
9ef373651f Code for low-level database copy; sometimes corrupted, not sure why
svn: r23416
2013-10-26 12:25:52 +00:00
Doug Blank
bdf9f42477 GUI changes for Copy function in Family Tree Manager dialog
svn: r23415
2013-10-26 00:30:49 +00:00
Doug Blank
81ca515038 Removed debugging info; moved to standard admin, redirect not working
svn: r23414
2013-10-25 22:49:55 +00:00
Doug Blank
507a1f9b9f PIL not needed
svn: r23413
2013-10-25 22:02:45 +00:00
Craig J. Anderson
824a9a5134 Version 1 of the recursive descendant routine. More recursive classes to come.
ander882@hotmail.com



svn: r23412
2013-10-25 20:33:55 +00:00
Vassilii Khachaturov
96c2db0538 7158: localize "today" in DateParser
Should we also support prefixes?

svn: r23408
2013-10-25 16:26:58 +00:00
Vassilii Khachaturov
e7f9431e80 7158: refactor parsing of "today"
prepare for localization - refactor the parsing of "today" in line with
other token parsing in DateParser, rather than using the hardwired text

Already possible to override per language, but I'll next add
a way to import a single translation of a "today" from the PO.

svn: r23407
2013-10-25 16:15:40 +00:00
Doug Blank
9ffe6d13e3 7158: Some filters need a date of today; request to add "today" as a valid date to parser; allow 'today (hebrew)'
svn: r23406
2013-10-25 12:59:54 +00:00
Vassilii Khachaturov
4e2e51ff31 7158: "today" parsing fails with other calendars
Committed a test that uncovers this problem, before we add
localization to the "today" string

svn: r23393
2013-10-25 08:39:19 +00:00
Vassilii Khachaturov
eb725cc5aa 7158: test coverage for Doug's "today" changes
w/o localized parsing yet

svn: r23392
2013-10-25 08:22:11 +00:00
Vassilii Khachaturov
6c49da9b4b test refactor
svn: r23391
2013-10-25 08:22:01 +00:00
Vassilii Khachaturov
6f2a43877d better diags on test failure
svn: r23390
2013-10-25 08:21:51 +00:00
Vassilii Khachaturov
63cecba1df no unittest.assertFail
Remove redundant catch-all wrapper, the unit testing framework
reports an exception here anyway!

svn: r23389
2013-10-25 08:21:39 +00:00
Doug Blank
1814c41c9a Fix to convert note text str to unicode (cuni)
svn: r23388
2013-10-25 01:26:45 +00:00
Doug Blank
da1eadacd6 Fix for very long texts in a column
svn: r23387
2013-10-25 01:18:29 +00:00
Doug Blank
7d67e2bc46 7158: Some filters need a date of today; request to add "today" as a valid date to parser
svn: r23386
2013-10-24 22:27:14 +00:00
Doug Blank
365daaba62 Moved code to get links from notes to Note object; updated quickview
svn: r23382
2013-10-24 14:31:21 +00:00
Doug Blank
39a3f50a96 Add default charset for Django settings; change from default pdf output to html
svn: r23380
2013-10-24 11:40:35 +00:00
Doug Blank
83fc3ad4e8 Moved import of ProgressMeter inside prepare methdod; FIXME: use User class instead
svn: r23377
2013-10-24 04:25:17 +00:00
Doug Blank
fb704558e2 Change for Django 1.5.4, no more redirect_to
svn: r23376
2013-10-23 17:45:42 +00:00
Doug Blank
b91927e37c Added gramps. to webapp imports (should make webapp a package)
svn: r23375
2013-10-23 17:16:39 +00:00
Doug Blank
46ceab3ca8 Apparently, when running as a script, sys.stdout might not have an encoding
svn: r23374
2013-10-23 17:03:40 +00:00
Doug Blank
8ece67cab1 Initial protection for not having PIL (either not installed or not available, python3)
svn: r23372
2013-10-23 02:07:27 +00:00
Doug Blank
e06051fa7c Allow to be used without bsddb installed, for uses where it is not needed (webapp and other uses)
svn: r23371
2013-10-23 02:00:38 +00:00
Vassilii Khachaturov
a4bc19b887 6753: add long_days to DateStrings
svn: r23369
2013-10-22 18:37:20 +00:00
Paul Franklin
b91765d462 7150: crash on backup or export
svn: r23367
2013-10-22 16:53:10 +00:00
Vassilii Khachaturov
bf6901e6ed 7125/7102: port my fix from gramps40
Don't bump 1.6.0 XML version, because Gramps 4.1 --
the first version to use it -- hasn't been released yet

svn: r23356
2013-10-20 16:54:48 +00:00
Paul Franklin
59457923fa 7124: Complete Individual Report does incomplete translation
svn: r23354
2013-10-20 16:46:53 +00:00
Vassilii Khachaturov
265b1d7b53 6926: remove redundant cal prefixes in FR
these are automatically populated by the prefix table building code

svn: r23346
2013-10-20 12:27:03 +00:00
Doug Blank
8667fbc971 CLI run_report: use User()
svn: r23340
2013-10-19 13:08:56 +00:00
Doug Blank
f74d1e51a1 Handles: add __str__ method
svn: r23339
2013-10-19 13:08:19 +00:00
Doug Blank
5c50673f15 SimpleTable: allow bools
svn: r23338
2013-10-19 13:07:49 +00:00
Doug Blank
1018b9edb2 Fixed new Gtk Drag/Drop names
svn: r23337
2013-10-19 03:02:50 +00:00
Paul Franklin
fbe500a5cb 7138: missing import in editmediaref.py
svn: r23336
2013-10-18 19:59:39 +00:00
Doug Blank
e33642c412 Don't crash if not opened
svn: r23331
2013-10-17 16:02:55 +00:00
Doug Blank
27c5f4ffc5 6678: Database Differences Report crashes 4.0 beta svn 21228
svn: r23330
2013-10-17 12:07:04 +00:00
Jérôme Rapinat
0c3562f3f4 6926: some calendar names are handled via fr.po, only keep alternate names
svn: r23328
2013-10-16 17:15:13 +00:00
Vassilii Khachaturov
be84468d3f 6926: merge to trunk p2: gramps/ code changes
svn: r23324
2013-10-16 14:04:21 +00:00
Paul Franklin
6e7c18b95a 7129: the Family Group Report doesn't show "family" attributes
svn: r23320
2013-10-13 21:11:30 +00:00
Doug Blank
1a4445f576 Don't change gramps_id if doesn't fit; removed to match gen/db/read.py
svn: r23312
2013-10-11 17:47:52 +00:00
Doug Blank
5545f37edc DictionDB: don't change gramps_ids; mediaref: to_struct['rect'] returns None for (0,0,0,0)
svn: r23311
2013-10-11 17:41:06 +00:00
Doug Blank
6f057a6586 Checksum is not an int, but a md5 hash
svn: r23310
2013-10-11 17:25:25 +00:00
Doug Blank
8ee4695239 Handles that are empty strings are standardized to None
svn: r23309
2013-10-11 17:24:29 +00:00
Doug Blank
aae377636d Display Handles properly
svn: r23308
2013-10-11 17:23:42 +00:00
Doug Blank
716c14856a Update media checksums in the check and repair tool
svn: r23307
2013-10-11 17:22:47 +00:00
Doug Blank
3fd19feea4 7090: wrong age for dead people reported by webcal
svn: r23306
2013-10-11 11:46:06 +00:00
Paul Franklin
dc0deae09e 7092: API for reporting issues ["interim" solution, from Nick Hall]
svn: r23301
2013-10-11 00:01:10 +00:00
Doug Blank
9780abd304 Completed tag database upgrade; additional changes for CLIManager
svn: r23299
2013-10-10 19:50:09 +00:00
Doug Blank
2238e0479e Changed log.errors to log.warn (errors will stop execution)
svn: r23298
2013-10-10 19:48:05 +00:00
Doug Blank
6bb98bb230 Fix for when active_handle is ''
svn: r23297
2013-10-10 17:26:54 +00:00
Doug Blank
c2f0f5a063 Updates to work with CLIManager; shell refinements
svn: r23294
2013-10-10 12:29:52 +00:00
Paul Franklin
3575f63cbd 7102: XML: Gramps does not export 'very low' value (0) for confidence into citation
svn: r23289
2013-10-09 16:20:00 +00:00
Josip Pisoj
fd2efd76d8 0007114: GtkSpell: language code in a human readable format
svn: r23284
2013-10-08 17:32:22 +00:00
Doug Blank
9522a5ba53 7006: double entries in de gendex.txt file
svn: r23282
2013-10-08 16:40:00 +00:00
Doug Blank
1b6232e380 Add right-click support for media in detail views
svn: r23277
2013-10-08 12:02:55 +00:00
Doug Blank
c6585a8fac Add right-click 'Make Active Media' to Photo class
svn: r23276
2013-10-08 11:32:33 +00:00
Vassilii Khachaturov
c87066136e 7100: proper handling of dates with NY in Date.set
svn: r23275
2013-10-08 11:23:30 +00:00
Doug Blank
ed1d579bfc Add Gallery 'Make Active Media', typo
svn: r23274
2013-10-08 01:29:18 +00:00
Doug Blank
f1aa649601 Add Gallery 'Make Active Media', typo
svn: r23271
2013-10-08 01:12:28 +00:00
Doug Blank
4d8eae042a Add Gallery 'Make Active Media'
svn: r23270
2013-10-08 01:04:07 +00:00
Nick Hall
060eed99c6 Freeze headings when scrolling
svn: r23267
2013-10-07 22:03:42 +00:00
Nick Hall
fa7ee8bbb6 7080: Fix upgrade when media path does not exist
svn: r23264
2013-10-07 17:12:58 +00:00
Jérôme Rapinat
aa265ae1e7 7105: missing event_ref_list into get_citation_child_list method
svn: r23263
2013-10-07 14:44:03 +00:00
Jérôme Rapinat
9d7f4b4056 7081: QuestionDialog module moved to gramps.gui.dialog
svn: r23249
2013-10-05 16:41:50 +00:00
Vassilii Khachaturov
b716a7f298 7100: add debug logging for the bug investigation
svn: r23247
2013-10-03 23:11:04 +00:00
Nick Hall
905e6a5993 Convert SoundEx Generator tool into a gramplet
svn: r23246
2013-10-03 21:11:05 +00:00
Nick Hall
543fda3d5d Add new ancestor and descendant gramplets
svn: r23244
2013-10-03 18:06:50 +00:00
Nick Hall
ac35859e27 Convert uncollected objects tool into a gramplet
svn: r23243
2013-10-03 16:02:48 +00:00
Nick Hall
6aaccd4ca0 Convert python evaluation tool into a gramplet
svn: r23242
2013-10-03 13:33:03 +00:00
Jérôme Rapinat
c7f4a540b1 7072: fix level for citationref into person
svn: r23237
2013-10-02 08:10:07 +00:00
Jérôme Rapinat
010b67688a 7071: age on date now displays all individuals, update titles
svn: r23236
2013-10-01 08:57:18 +00:00
Doug Blank
609e2f5989 CACHES = {}
svn: r23233
2013-09-30 23:57:49 +00:00
Vassilii Khachaturov
8d5a98af2d 7088: remove SDN version reporting
svn: r23232
2013-09-30 19:31:47 +00:00
Nick Hall
c3aa0ccbb9 7066: Fix hebrew calendar and remove sdn import
svn: r23229
2013-09-30 17:41:21 +00:00
Nick Hall
533a279189 Move missing Gtk Spell warning
svn: r23224
2013-09-30 12:45:32 +00:00
Vassilii Khachaturov
3b14e98a1a 7088: rm warning on `import sdn' failure
svn: r23221
2013-09-30 11:46:07 +00:00
Nick Hall
e5a929c8b3 Revert change to suppress warnings
svn: r23218
2013-09-28 14:00:49 +00:00
Vassilii Khachaturov
659f1bec17 7089: same bug in 3 more reports
Port r23211-r23213 from gramps34.

svn: r23214
2013-09-27 23:57:49 +00:00
Vassilii Khachaturov
08dc8ffc53 7089: webcal mistreats non-gregorian event dates
svn: r23209
2013-09-26 22:06:15 +00:00
Paul Franklin
3381140ec0 7088: provide a config option to suppress the warning about missing "sdn"
svn: r23207
2013-09-26 21:53:03 +00:00
Vassilii Khachaturov
93170f1e2a 7037: proxy crash with complex person filter
reapply to trunk after retest by Mirko

svn: r23204
2013-09-26 20:32:53 +00:00
Vassilii Khachaturov
d29ea3775f friendlier test failure diags
svn: r23199
2013-09-25 15:52:55 +00:00
Vassilii Khachaturov
03ccd6b8f9 skip MatchDateTest on non-English locales
svn: r23197
2013-09-25 14:51:08 +00:00
Vassilii Khachaturov
a79e943c19 6881: latin_american broken for partial families
svn: r23193
2013-09-25 11:12:10 +00:00
Paul Franklin
203508eab1 enable Arabic date handler in trunk
svn: r23191
2013-09-24 16:29:24 +00:00
Tim G L Lyons
edafc6a7c1 0006802: In Narrative Web report most Family Maps are missing. Problem due to single apostrophe (closing single quotation mark) which needs to be escaped.
svn: r23189
2013-09-24 11:30:33 +00:00
Vassilii Khachaturov
74ea37f1ba 7037: proxy crash with complex person filter
filter parameter shadowed the global filter :-)

svn: r23184
2013-09-23 15:58:32 +00:00
Vassilii Khachaturov
05fae5df80 7045: enable cal switch in editor on empty dates
svn: r23177
2013-09-21 08:57:02 +00:00
Vassilii Khachaturov
018f0ab30b Revert "6926: display genitive/nominative months as needed"
Sorry, my mistake. Committed from the wrong branch!

This reverts commit 0e82e0077ac1cad122f4584d62b54855ca02e4d8.

svn: r23175
2013-09-20 12:41:46 +00:00
Vassilii Khachaturov
0936aa37e8 DateParserRU: suport 'до'
Add 'до' both as a Date.MOD_BEFORE modifier token
and as a span2 token (i.e., stop end for a Date.MOD_SPAN).

svn: r23174
2013-09-20 12:41:33 +00:00
Vassilii Khachaturov
6eebd80dfc 6926: display genitive/nominative months as needed
First proof of concept, fixing the original bug for Russian.
Added gramps/gen/datehandler/_datestrings.py, to hold
all the localized strings, with genitive/nominative
context as appropriate.

Remaining TODO:
1) other languages
2) expand the localized string into RE-style
concat via |, so that displayer uses the 1st instance,
and the parser uses the whole RE. Write the corresponding _().
3) same with short names as with long names
4) harmonize with _grampslocale code reading the names from
elsewhere for Julian/Gregorian months
5) expand to other calendars (non-Julian/non-Gregorian)
6) obsolete the public attributes in dd and replace with accessors

svn: r23173
2013-09-20 12:33:00 +00:00
Jérôme Rapinat
45f9ea5e6d 7081: No QuestionDialog module into gramps.gui.utils
svn: r23169
2013-09-20 10:17:29 +00:00
Jérôme Rapinat
a861db35bf wrap description for width dialog
svn: r23168
2013-09-20 09:18:14 +00:00
Vassilii Khachaturov
407b059dba 7068: undo french fallback to gregorian
French SDN conversion functions now accept an optional boolean
parameter that allows to block dates outside the republican period.
By default, calendar conversions are allowed.
Revert test blocked by r23139, it now passes!

svn: r23167
2013-09-19 22:54:49 +00:00
Vassilii Khachaturov
180cb1ac28 6926: add partial dates (M/Y and Y), not just DMY
svn: r23166
2013-09-19 22:06:27 +00:00
Vassilii Khachaturov
1972013601 7063: endless loop in probably_alive_range
Reapply r23161 from gramps40

svn: r23162
2013-09-18 14:49:59 +00:00
Doug Blank
c4125c9299 Turn off debug level, enable warn level; provide a default null handler for logging
svn: r23153
2013-09-17 15:12:36 +00:00
Doug Blank
adf9d0dc81 7069: Narrated Web Site media pages do not include multiple references
svn: r23148
2013-09-17 10:35:33 +00:00
Tim G L Lyons
42f6070d8c Fix citation filters so they no longer try to filter citations with a sources filter. Citation filter now allows specification of both source and citation data. When a citation is shown in a search or a filtered citation tree view, the corresponding source is also shown.
svn: r23143
2013-09-16 21:39:47 +00:00
Vassilii Khachaturov
f31a74d271 7068: skip blocked test code, blocks other tests
svn: r23139
2013-09-15 14:56:12 +00:00
Vassilii Khachaturov
f4be9dfc70 Cope with UnicodeDecodeError on git svn output
svn: r23138
2013-09-15 14:56:01 +00:00
Vassilii Khachaturov
f7c036ab52 7027: skip tests blocked by this bug
svn: r23137
2013-09-15 14:43:30 +00:00
Vassilii Khachaturov
6dede8d8af 7066: fix our algorithm based on jewish.c in sdn
It looks like we had an earlier fork of the same code,
and the upstream had some bugs fixed.

svn: r23133
2013-09-14 23:32:30 +00:00
Vassilii Khachaturov
b22b533846 7066: some massaging of ICU version, still fails
svn: r23129
2013-09-14 21:43:36 +00:00
Vassilii Khachaturov
da749a3fbc 7066: fallback to buggy PyICU if sdn unavailable
svn: r23128
2013-09-14 19:42:59 +00:00
Vassilii Khachaturov
a58b5cf2b7 7066: use sdn module from Calendar package on pypi
Unfortunately, no package on ubuntu for sdn...

Bug fixed on trunk, when sdn is present on the system.
Verified that sdn roundtrip works.
date_test now fails on 1789-13-4(French) recognized as invalid,
as it probably should -- I guess this one is a test bug.

svn: r23127
2013-09-14 19:42:48 +00:00
Vassilii Khachaturov
4d82a70eaa provide sensible defautls for all Date.set params
svn: r23126
2013-09-14 15:44:04 +00:00
Vassilii Khachaturov
307b8519b2 7066: comment blocked test code until bug fixed
svn: r23125
2013-09-14 15:43:54 +00:00
Vassilii Khachaturov
ad333e937c 7045: Setting an invalid date does not raise
do the sanity checks on a separate date object,
so that the uncertainty expressed with 0 d/m isn't removed

svn: r23124
2013-09-14 15:11:09 +00:00
Vassilii Khachaturov
37e82106dc 7065: Calendar conversion broken for negative date
fixed, repro steps work as expected now
date_test still broken due to further blocking issues,
see #7045

svn: r23123
2013-09-14 14:23:58 +00:00
Vassilii Khachaturov
9c47f96b9c 7045: Date.set on invalid date does not raise
refactor _zero_adjust_ymd out of 3 cut-and-paste cases
the bug with the code inside it remains -- the negative years
should not be clamped to positive ones!!!!

svn: r23122
2013-09-14 13:24:40 +00:00
Vassilii Khachaturov
ab7d12103f 7045: Date.set on invalid date does not raise
Now it does, but another test breaks:

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/loader.py", line 252, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
    __import__(name)
  File "/home/vassilii/Gramps/gramps/gen/lib/test/date_test.py", line 136, in <module>
    d.set(quality,modifier,calendar,(4,11,-90,False),"Text comment")
  File "/home/vassilii/Gramps/gramps/gen/lib/date.py", line 1600, in set
    format(original, value))
DateError: Invalid year -90 passed in value (4, 11, -90, False)

because the corresponding year gets adjusted from -90 to 1...

svn: r23121
2013-09-14 13:00:19 +00:00
Vassilii Khachaturov
571e3cffa7 7034: fix test_copy_ymd_preserves_orig
broken in r23083

svn: r23120
2013-09-14 11:50:58 +00:00
Vassilii Khachaturov
5a7e4bd2c6 add get_git_svn_revision and fall back to it
Now gramps developers using git need not be ashamed of their
``gramps --version'' output :)

svn: r23118
2013-09-13 21:42:35 +00:00
Jérôme Rapinat
7518fc5d2a wrap description on about dialog
svn: r23116
2013-09-13 13:06:22 +00:00
Vassilii Khachaturov
f8698d12f3 5598: refactor GUI tools to enable CLI operation
evname now a CLI tool

svn: r23111
2013-09-13 09:00:59 +00:00
Vassilii Khachaturov
2abca1d071 5598: make cli User.info consistent w/other output
svn: r23110
2013-09-13 09:00:46 +00:00
Vassilii Khachaturov
532424605b 5598: rm import OkDialog - user.info used instead
svn: r23109
2013-09-13 08:39:08 +00:00
Paul Franklin
519eb40d65 add Arabic date handler to trunk, for further testing
svn: r23106
2013-09-13 00:08:45 +00:00
Vassilii Khachaturov
32a63852e0 7061: docstring update
svn: r23104
2013-09-12 21:48:23 +00:00
Vassilii Khachaturov
6c6ca1cd20 Revert*2 "5098: refactor code to use User.progress
Revert*2 means re-apply :-)

svn: r23102
2013-09-12 21:22:14 +00:00
Vassilii Khachaturov
0b936041d3 5098: rename gui.user.User.progress to ._progress
it shadowed the gen.user.User.progress (the context manager),
breaking the ``with user.progress() ... as step:'' idiom!

svn: r23101
2013-09-12 21:22:02 +00:00
Vassilii Khachaturov
4ff73e9d8a 5098: refactor to use user.info and user.progress
svn: r23100
2013-09-12 21:21:53 +00:00
Vassilii Khachaturov
85c1a9a0fd Revert "5098: refactor code to use User.progress"
This reverts commit db9a64ef7da5f26c586452c1a84a96675991d9a4.

This was tested with "runtest.sh" only, but turns out things
are broken under GUI. I'll investigate on a private branch,
reverting meanwhile to unblock the affected plugins on trunk.

svn: r23099
2013-09-12 20:39:07 +00:00
Vassilii Khachaturov
92c13a36bf 5098: refactor old code to use User.progress
Now that #7061 is done, all the old code should no longer use
User.begin_.../step_.../end_progress directly any more, preferring
the context manager instead.

svn: r23096
2013-09-12 19:31:06 +00:00
Vassilii Khachaturov
299235a687 7061: User.progress
docstrings

svn: r23093
2013-09-12 17:51:42 +00:00
Vassilii Khachaturov
dd8263a6e8 7061: Wrap User...._progress in a context manager
ensure end_progress is called when exception is raised

svn: r23092
2013-09-12 17:51:31 +00:00
Vassilii Khachaturov
fffeb1c0b4 7061: Wrap User...._progress in a context manager
svn: r23091
2013-09-12 15:41:14 +00:00
Vassilii Khachaturov
e8202bf4fe 6940: ErrorReportAssistant_Test.test_buffer_recall
fix as approved by Benny

svn: r23090
2013-09-12 14:24:56 +00:00
Doug Blank
6e51929bde ageondate quickview: show reason why considered alive or dead
svn: r23087
2013-09-11 10:56:26 +00:00
Doug Blank
621615bbd1 living proxy did not exclude living people with iter_people()
svn: r23084
2013-09-11 02:12:40 +00:00
Vassilii Khachaturov
b6f7ab9ed0 7034: add remove_stop_date parameter
svn: r23083
2013-09-10 17:19:16 +00:00
Doug Blank
146be99876 Ignore meaningless @IDENT@ on CONT or CONC line as detailed at http://www.tamurajones.net/IdentCONT.xhtml
svn: r23081
2013-09-10 16:52:03 +00:00
Vassilii Khachaturov
ff89425e50 7013: strip underscores from accept/reject labels
svn: r23077
2013-09-10 12:41:05 +00:00
Doug Blank
52d8a77864 7053: Narrated Website report crashes; check for family == None on lookup
svn: r23074
2013-09-10 10:09:32 +00:00
Vassilii Khachaturov
be8c13ef4f 5598: implement User() class for tools
change BatchTool to take user instead of uistate
BatchTool now uses user.prompt, properly prompting the user in CLI
scenario as well, unless "--yes" flag is given

svn: r23071
2013-09-09 21:04:45 +00:00
Paul Franklin
a4ae95f260 enable suppression of minor missing-package warning (spell checking)
svn: r23070
2013-09-09 20:55:25 +00:00
Vassilii Khachaturov
e51987aab8 7034: probably_alive() failing when no birth-death
further refactoring of set_.../set2_... common code
added accessor get_stop_ymd analogous to get_ymd

svn: r23068
2013-09-09 19:31:13 +00:00
Vassilii Khachaturov
bdd08bc679 7034: probably_alive() failing when no birth-death
docstring update

svn: r23067
2013-09-09 19:31:00 +00:00
Serge Noiraud
9695f0a8e4 Geography : bug#0006930 : incorrect string in geoplaces
svn: r23064
2013-09-09 15:29:44 +00:00
Tim G L Lyons
6661229b09 Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode'
svn: r23063
2013-09-09 11:32:59 +00:00
Vassilii Khachaturov
5c9751f3b9 5598: implement User() class for tools
Refactoring in progress:
Modified all the tools' classes' call signature:
now all take a user argument instead of a uistate, and
GUI and CLI signature is unified.

All tools now begin with uistate = user.uistate

svn: r23061
2013-09-08 21:43:12 +00:00
Vassilii Khachaturov
8bdb301958 Add CLIManager.user attribute and __init__ param
Instead of initializing self.user, ArgHandler now aliases
the sessionmanager's one.

svn: r23060
2013-09-08 21:03:40 +00:00
Vassilii Khachaturov
8d867ec2a5 refactor test
svn: r23059
2013-09-08 19:35:15 +00:00
Vassilii Khachaturov
a702a815b3 consistency between offset and non-offset setters
added ugly parameter _update2 to set_yr_mon_day, needs refactoring

svn: r23058
2013-09-08 19:23:23 +00:00
Vassilii Khachaturov
39927c45bd fix set_yr_mon_day_offset for compound dates
now calls set2_yr_mon_day_offset

svn: r23057
2013-09-08 19:23:12 +00:00
Vassilii Khachaturov
d4b9448cbc refactor set_yr_mon_day and set2_yr_mon_day
refactor common base

svn: r23056
2013-09-08 19:23:02 +00:00
Vassilii Khachaturov
6910605c4e raise DateError in set2_... if not is_compound()
refactor Date to always use is_compound instead of repeating
its logic everywhere

svn: r23055
2013-09-08 19:22:52 +00:00
Vassilii Khachaturov
7e04c4b136 Add some UT for Date.set2_... and fix bugs
Cut and paste is evil ;-) fix bugs before I refactor the code...

svn: r23054
2013-09-08 19:22:40 +00:00
Vassilii Khachaturov
14a69143e1 7034: probably_alive() failing when no birth-death
docstring fix

svn: r23053
2013-09-08 19:22:30 +00:00
John Ralls
859b030238 Bug 7040: 4.0.2 svn 23029M fails to start catastrophically
svn: r23046
2013-09-06 19:09:25 +00:00
Nick Hall
66fc6893ea Fix bug listing gramplets already in gramplet bar
svn: r23041
2013-09-05 22:47:02 +00:00
Vassilii Khachaturov
109fabf5d4 add __main__ for stand-alone test runs
svn: r23036
2013-09-05 08:25:30 +00:00
Vassilii Khachaturov
81f412a23f Indentation fix
svn: r23034
2013-09-04 20:38:25 +00:00
Vassilii Khachaturov
acdf385509 5598: implement User() class for tools
refactoring in progress - convert calling the tools' classes
using positional syntax

svn: r23032
2013-09-04 14:44:19 +00:00
John Ralls
4cf8c95170 Bug 7040: 4.0.2 svn 23029M fails to start catastrophically
svn: r23030
2013-09-04 14:04:48 +00:00
Doug Blank
d911ce7760 7034 and 6965: missing method
svn: r23028
2013-09-04 10:39:40 +00:00
Doug Blank
7977800875 7034: probably_alive() failing when no birth-death dates specified; 6965: Probably Alive fails when birth date is a range
svn: r23023
2013-09-04 02:54:32 +00:00
John Ralls
d09bfef267 Change grampslocale logger to use __name__ instead of 'grampslocale'
Attempt to suppress 'No handler for logger grampslocale' messages by enrolling the logger in the module hierarchy.

svn: r23016
2013-09-03 23:18:24 +00:00
John Ralls
6203393960 Simplify display_url to just use htmlview or webbrowser
svn: r23015
2013-09-03 22:43:33 +00:00
John Ralls
97c981af3f Avoid bogus rel-calc translation error message in C locale
svn: r23014
2013-09-03 22:43:25 +00:00
Vassilii Khachaturov
1206e00076 minor cleanup
svn: r23013
2013-09-03 20:37:03 +00:00
John Ralls
8c331a5d92 Bug 7036: [Win32]Setting LANG crashes Gramps
Also fixes Bug 6919: No automatic language selection in Windows
Thanks to Helge Herz.

svn: r23011
2013-09-03 17:39:04 +00:00
John Ralls
6422964a40 Bug 7017: Consolidate run_file into open_file_with_default_application
svn: r23009
2013-09-03 16:33:25 +00:00
Vassilii Khachaturov
ceccf0c442 5598: implement User() class for tools
Let gui User take an optional uistate kwarg,
and use it in dbloader and viewmanager.

svn: r23008
2013-09-03 14:17:27 +00:00
Doug Blank
8f745a1e07 Webapp: update empty.sql to latest db design
svn: r22995
2013-09-01 13:03:05 +00:00
Doug Blank
4fefbfb647 Webapp: search refinements
svn: r22993
2013-09-01 12:32:28 +00:00
Doug Blank
8e8a2b7c6a Webapp: use cuni for python3 compatibility
svn: r22989
2013-09-01 11:42:09 +00:00
Doug Blank
653cb3882b Use cuni rather than unicode
svn: r22988
2013-09-01 11:20:35 +00:00
Doug Blank
6f7cdb8fd2 7025: issue with python3 and unicode string
svn: r22986
2013-09-01 11:07:40 +00:00
Vassilii Khachaturov
7eb11077c8 clean up tmp test files in the end
svn: r22983
2013-09-01 07:37:58 +00:00
John Ralls
7b4b9d09f0 Fix misguided change to poll_external signature
svn: r22981
2013-09-01 04:32:48 +00:00
Doug Blank
1d3275f88e 7025: 4.0.2 svn 22976M fails to start catastrophically
svn: r22980
2013-09-01 02:35:11 +00:00
Doug Blank
8958407097 Webapp: put .distinct() last to remove duplicate matches in queries
svn: r22977
2013-09-01 02:11:15 +00:00
Doug Blank
4a8d98ec2e Webapp changes to properly show unicode data in html
svn: r22975
2013-08-31 13:41:38 +00:00
Doug Blank
0b0d0c5c05 Create .pyhistory if it doesn't exist
svn: r22974
2013-08-31 13:10:30 +00:00
Vassilii Khachaturov
64d3a217f1 6960: Bless Source with an IndirectCitationBase
svn: r22970
2013-08-30 22:33:58 +00:00
Vassilii Khachaturov
94638ad84e 6960: mergecitations has broken copy of MCQ
The MergeCitations batch tool had a cut-and-pasted code
replicating MergeCitationQuery logic. Naturally, it diverged :-)
Removed MergeCitations.Merge and use MergeCitationQuery instead.

svn: r22969
2013-08-30 22:03:14 +00:00