Compare commits

..

753 Commits

Author SHA1 Message Date
7fb1ad876a Improve/harmonise error handling for missing template (even though missing template should never occur).
svn: r23195
2013-09-25 13:59:54 +00:00
89909f87cd Correct error introduced in r23144
svn: r23194
2013-09-25 13:48:17 +00:00
5903853640 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: r23144
2013-09-16 21:42:28 +00:00
7c90638ad3 Various changes to use title, author, pubinfo and page from citeref, rather than from Src and Citation.
svn: r22912
2013-08-23 18:25:21 +00:00
9037f827a5 - update exportxml and importxml for templates,
- move TemplateElement into separate module,
- remove redundant srctemplatelist module,
- fix editsource so source attribute tab updates when template fields are input,
- fix importcsv so it uses map names defined in citeref module,

svn: r22880
2013-08-19 22:31:52 +00:00
367de337a4 - Move citeref formatting to gen.utils. Functions now have a db parameter, so they find the template themselves.
- Separate out the GEDCOM template creation. It becomes a separate plugin that can be loaded or not as the user chooses (but it is loaded automatically on upgrade).
- Fixes to allow templates to work even when no templates are loaded (data is input via the Attributes tab not the source template tab).
- Enhance upgrade to include GEDCOM template. The GEDCOM template is automatically loaded when a database that contains sources is upgraded.
- Tidy up unused variables and redundant code.


svn: r22856
2013-08-12 16:04:37 +00:00
06de73c8f4 Templates are a full TableObject and stored in the database. Template attributes are CUSTOM attributes.
svn: r22843
2013-08-10 15:25:56 +00:00
c4ecfaafe9 Modified EE-references and GEDCOM generation to use Template data structures. Added support for interface to citeproc for CSL style sheets (not ready for use yet). Modified code to work with Python3.
svn: r22737
2013-07-25 14:22:48 +00:00
2430607b63 Modify srctemplatetab to use new Template data model
svn: r22698
2013-07-20 18:15:58 +00:00
94fe287886 Restructure SrcTemplate and introduce SrcTemplateList (work in progress)
svn: r22694
2013-07-17 18:26:35 +00:00
6cf005cb38 Source editor, wrap 'Reference Information' lines.
svn: r22692
2013-07-16 23:26:46 +00:00
38db8959fa GEP18: big database change for source and citation
svn: r22639
2013-07-01 19:27:48 +00:00
6c04f8b151 GEP18: add deprecated decorator to gramps, use in src and citation
Usage: python -W all Gramps.py


svn: r22622
2013-06-28 12:49:31 +00:00
85cc487ee9 GEP18: no longer show default cite fields on source level. Flag could be reactivated in the future
svn: r22621
2013-06-28 06:43:31 +00:00
38d7ee72f2 GEP18: csv loading based on English only
svn: r22620
2013-06-28 06:36:45 +00:00
9ce8403106 GEP 18: Improve error message
svn: r22619
2013-06-27 19:02:11 +00:00
ee3350e9d5 GEP 18: fix bug in List reference determination
svn: r22614
2013-06-25 23:05:49 +00:00
6cde88e22d GEP 18: fix index error
svn: r22613
2013-06-25 22:33:37 +00:00
e9efb9debc GEP 18: merge trunk into GEP branch
svn: r22612
2013-06-25 22:28:13 +00:00
0a2580e9c5 GEP 18: 1. Source templates as new plugin type
2. EE templates in their own plugin, loading from csv in data


svn: r22611
2013-06-25 22:26:56 +00:00
4664f77608 squash 40 commits:
1. 6848: citationtreeview corrupts when search bar open and edit occurs
2. avoid critical gdk error by processing events only when window visible :
     Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed
3. In case of errors with fg_color, enormous amount of error messages. This patch
   grabs wrong fg_color, and skips action, avoiding the error messages. Error goes to debug.


svn: r22610
2013-06-25 22:15:08 +00:00
5b6da40866 GEP 18: merge latest trunk changes in branch
svn: r22605
2013-06-25 10:56:02 +00:00
e9629f77e0 Bring srcattrtype in line with GEP 18:
1. less types
  2. no template data
  3. an ignore list


svn: r22604
2013-06-25 10:55:12 +00:00
0d3aec7313 GEP 18: merge trunk changes in gep branch
svn: r22603
2013-06-25 10:45:43 +00:00
a7e5ecbadf GEP 18: add date from cite in reference part of citation
svn: r22602
2013-06-25 09:20:16 +00:00
6e22f80784 added GPL "boilerplate", SVN properties, and SVN Id line as needed
svn: r22598
2013-06-24 19:31:17 +00:00
242fd1372d 6838: report cli crash ignoring unknown param
merge from gramps40 branch

svn: r22596
2013-06-24 18:17:15 +00:00
6d9fbe0238 update Ukrainian relationship calculator (by Fedir)
svn: r22582
2013-06-24 06:41:23 +00:00
39395150f7 make sure relationship calculator tool's relationships are in the UI language
svn: r22581
2013-06-24 01:59:25 +00:00
1158e77e13 Correctly set images/webstuff path in htmldoc.py and setup.py
svn: r22578
2013-06-23 23:24:02 +00:00
3fd0762ae0 Move the HTML resources from gramps/plugins/webstuff to data and images
So that they're together with the other resources instead of in 
site-package/gramps. Aside from a better source and installation 
layout, this makes it easier to bundle them.



svn: r22576
2013-06-23 22:47:25 +00:00
54ef9241a1 GEP 18: remove subgroup, replace by section
svn: r22575
2013-06-23 21:42:54 +00:00
1fd823bb71 GEP 18: Obtain repo data from attached repo, no user input field
svn: r22572
2013-06-23 14:38:36 +00:00
b8a18b02b5 6740: root cursor corruption
Use get_window() not get_root_window() to set the cursor.

svn: r22571
2013-06-23 14:16:22 +00:00
8af57bcf07 4571: RTL support in fanchart: cleanup older code
Use math.degrees() / math.radians() where able

Follow-up to CR by Benny:
    Removed redundant forced conversion to float, the
    	from future import division
    handles that already. See PEP-238 for details.

draw_text:
Remove manual layout wrapping, use pango Layout logic.
Refactored wrap_truncate_layout from draw_arc_text,
and it's now reused in draw_text, here with CHAR
wrapping mode as opposed to WORD in draw_arc_text.
This replaces the (Unicode-wrong) implementation of
manual char-by-char code with text truncation.

svn: r22569
2013-06-23 11:12:13 +00:00
32172f1168 do not limit family's actors to mother and father, no relation between age of the person and child
svn: r22567
2013-06-23 09:18:57 +00:00
a4558b3ccc enable Ukrainian date handler (by Fedir)
svn: r22566
2013-06-23 09:16:54 +00:00
8bbbae41aa support Arabic on installation and lang_map (reports)
svn: r22565
2013-06-23 09:15:33 +00:00
d30ade0488 6814: Fix gramplet positioning when using RTL locale
svn: r22557
2013-06-22 21:01:04 +00:00
99671bdfaf GEP18: refractor: move template stuff to srctemplate.py
svn: r22554
2013-06-22 16:09:24 +00:00
d03fc19188 Fix minor ugliness due to precision loss.
Change an integer division into a floating one,
now the rendered text looks better.

svn: r22553
2013-06-22 15:23:06 +00:00
1dc1f6c0c2 added SVN Id property, and SVN Id line if needed
svn: r22552
2013-06-21 20:28:39 +00:00
face94275c 4571: RTL support in fan chart
gramps/gui/utilscairo.py:
new file, currently holds just the warpPath() function,
taken from /usr/share/doc/python-cairo/examples/warpedtext.py,
with explanatory docs added.

gramps/gui/widgets/fanchart.py, class FanChartBaseWidget:
draw_text() method:
previous logic using cairo toy text API didn't support CTL text.
It has been removed, and replaced with a call to a new
method, draw_arc_text().

Flagged a subtle Unicode issue in the remaining old code,
for radial-oriented text, with a FIXME, I'll probably fix it
later as a separate issue.

create_map_rect_to_sector() static method:
create a transform to use with gui.utilscairo.warpPath(),
currently used in draw_arc_text().

Following Benny's code review I have annotated the algorithm
and made it hopefully clear, but I guess it could be reworked
into a better form if re-expressed with stacked transforms /
complex numbers / matrices for easier later maintenance.
Meanwhile I have used the same approach as the older code
in the file, good enough for a patch under this feature request.

The only issue remaining from the code review is whether
the create_map_rect_to_sector() function should be moved
to gui.utilscairo; see the bug thread.

svn: r22548
2013-06-21 14:13:40 +00:00
4ba97726a2 0006352: Bookmarking a source in the citation tree creates a blank bookmark. Disallow bookmarking a source in the Citation Tree View, and do not add sources to the history in the Citation Tree View.
svn: r22545
2013-06-20 16:43:43 +00:00
f3fc5c5257 6821: CLI asks forever when trying to overwrite while exporting
svn: r22542
2013-06-20 16:34:22 +00:00
aa7516cbb4 6817: print should be now a function
svn: r22537
2013-06-20 14:27:33 +00:00
fab092f6fd 6817: Enhancements for testing localized Relationship handlers (contribution by Fedir)
svn: r22535
2013-06-20 10:07:41 +00:00
87499c96bc Add Ukrainian relationship calculator (contributions by Fedir); not yet included on 4.0.x branch
svn: r22530
2013-06-20 07:30:05 +00:00
dc690b7071 Add Ukrainian holidays (contributions by Fedir)
svn: r22529
2013-06-20 07:21:40 +00:00
8ad6600746 GEP 18: automatic update as you type for citation fields, fix in formatting, fix with indicators
svn: r22526
2013-06-19 21:14:18 +00:00
8ca5d92883 Copied my 6812 fix port for gtk3
Integrated from gramps40 branch

svn: r22525
2013-06-19 20:29:57 +00:00
a971eb7d66 RU translation update
fix a missing newline

svn: r22520
2013-06-19 16:07:16 +00:00
2b6ee1aa60 GEP18: add hint for indicators, add tooltips, again remove some fields
svn: r22519
2013-06-19 06:56:52 +00:00
8b37ca4119 GTK3: convert deprecated code for the indicator in entryfield
svn: r22518
2013-06-19 06:56:06 +00:00
3a42651fb1 GEP 18: still more aggressive reduction of attribute fields
svn: r22516
2013-06-18 14:10:18 +00:00
5c0b6dd023 RU translation update
Translated more strings.
 filters
 graph layout
 some other utils
 load errors
 configuration gui

svn: r22515
2013-06-18 13:30:44 +00:00
cc839bf167 GEP 18: introduce label in template, drastical reduction of number of source attributes
svn: r22514
2013-06-17 13:49:26 +00:00
f177537525 Merged trunk back into gep 18
svn: r22513
2013-06-17 11:14:05 +00:00
dce3fc0605 GEP 18: show citation template fields, source fields in scrolled window.
svn: r22512
2013-06-15 10:17:58 +00:00
9391218f20 GEP18: start with construction citation template fields
svn: r22511
2013-06-14 23:03:52 +00:00
dc853e2ee6 uk translation uptade
svn: r22508
2013-06-14 14:30:20 +00:00
06e4dcd11d GEP 18: fix bug setting cite when no cite loaded. Factor out fields for reuse in citation GUI
svn: r22507
2013-06-14 11:05:21 +00:00
5c71b46283 6797: Alternate Names in Person Details Gramplet (patch by Heinz Brinker)
svn: r22505
2013-06-13 21:35:05 +00:00
3135b2b304 GEP 18: * fix bug with gid of citation not updating
* allow to add new citation from the citedin tab


svn: r22502
2013-06-13 20:38:08 +00:00
3208db231d 0000860: GEDCOM: Space in gramps id fails to properly export/import
svn: r22501
2013-06-13 18:06:52 +00:00
a3c422b592 uk translation uptade
svn: r22498
2013-06-12 16:59:53 +00:00
5ee5ef158e GEP 18: fixes with citedintab.
*show unused citations also
 *correct switching between citation by updating citation displaytabs
 *backref, correct handling of connectid


svn: r22496
2013-06-12 08:48:48 +00:00
33343437a5 RU translation update
Translated:
  cli/: argparser.py clidbman.py

svn: r22494
2013-06-11 22:28:59 +00:00
5ffcd383ac GEP 18: Allow citation part to be closed, so people can change citation loaded
svn: r22493
2013-06-11 18:02:50 +00:00
e2f87c965b RU translation update
All fuzzies reviewed.
check_po lint errors fixed.

svn: r22492
2013-06-11 13:18:10 +00:00
8204724f32 GEP 18: save the citation also in the source editor
svn: r22489
2013-06-10 20:58:04 +00:00
f80bf8eb15 Geography : Gtk.Menu didn't work with gtk3.
svn: r22488
2013-06-10 20:45:40 +00:00
973e143b22 GEP 18: Deprecate EditCitation
svn: r22486
2013-06-10 20:09:03 +00:00
34b13775b7 RU translation update
Fix minor translation mistakes found by the check_po lint output.

svn: r22485
2013-06-10 15:01:42 +00:00
e5f80e521c GEP 18: avoid GTK warning on notebook tab overwrite
svn: r22484
2013-06-07 08:26:25 +00:00
ccf1f2eac5 GEP 18: add autotitle setting from given attributes
svn: r22483
2013-06-05 21:47:18 +00:00
1e99275b84 GEP 18: allow default citation values and short values to be set on source level
svn: r22482
2013-06-05 13:07:55 +00:00
b28bd17980 GEP 18: allow viewing of different citations in source editor
Start of merging editsource and editcitation


svn: r22481
2013-06-05 07:34:47 +00:00
ac730cf013 correct the filename in the "Id" line
svn: r22480
2013-06-04 21:25:36 +00:00
860360af2f add some more names to data.gramps (more modern: divorces, etc.)
svn: r22476
2013-06-03 20:18:12 +00:00
8e922b562d GEP 18: extend functionality of citedin tab
svn: r22473
2013-06-03 16:11:13 +00:00
72748498b2 GEP 18 - General improvement: Add a cited in tab to sources for general overview of uses
svn: r22472
2013-06-03 14:34:44 +00:00
9310d5c32d GEP 18: * fixes in template handling
* add source text to overview tab of source


svn: r22471
2013-06-02 15:20:08 +00:00
6e2272bb78 GEP 18: * read in template data
* manage template via SrcTemplate
        * obtain author/pubinfo from attributes via template


svn: r22469
2013-06-02 10:08:26 +00:00
da93d7134b There is no sourceref anymore, only citation
svn: r22468
2013-06-01 13:49:40 +00:00
d6c216bbd0 GEP 18: update fields in srcattrtype to what will be used in GEP18, so as to avoid translators seeing
non used fields (but best not to translate yet, this is trunk!)


svn: r22467
2013-06-01 09:53:17 +00:00
be45ac54fe GEP 18
* more reduction of fields
 * mapping to gedcom fields
 * style shorteralg as numbers in code


svn: r22466
2013-06-01 09:48:52 +00:00
b28bfb39db bring gep18 branch in line with trunk
svn: r22463
2013-05-31 19:19:27 +00:00
6ef2e77568 GEP 18: sanitize the many fields
svn: r22462
2013-05-31 19:17:33 +00:00
9543f44080 minor fixes
svn: r22461
2013-05-31 12:46:08 +00:00
28d20c52f8 czech translation update
svn: r22459
2013-05-31 08:58:15 +00:00
a8ddc8e635 gep18: remove print, attr type in two columns for now
svn: r22457
2013-05-30 08:31:33 +00:00
30e051a7fe GEP18: fix expand of reference section in editsource
svn: r22456
2013-05-29 20:31:11 +00:00
3b99b31656 GEP 18: fix bug due to previous commit
svn: r22455
2013-05-29 20:27:24 +00:00
a091d97677 GEP 18: automatic setting of fields, and updating attribute list
svn: r22454
2013-05-29 18:58:23 +00:00
69cfbe7a02 automatic creation of needed fields
svn: r22453
2013-05-29 17:08:51 +00:00
6dce67703e preselect the template of the source in the template tree
svn: r22452
2013-05-29 15:35:44 +00:00
c449bbf588 Evidence source new source editor version 1
* Overview tab
 * selection of template, which updates the template attribute


svn: r22451
2013-05-29 14:56:38 +00:00
cfebdf3429 copyright on evidence style, see private mail of John H. Yates to bmcage
svn: r22449
2013-05-29 07:47:32 +00:00
8755619584 6058: Ambiguous pdf output file format values [fix by Peter]
(this was already fixed in gramps34 20445)


svn: r22448
2013-05-28 20:52:59 +00:00
62da0fbaa9 GTK3: menu needs to survive function scope
svn: r22445
2013-05-28 15:31:49 +00:00
aa71eb19a6 RU - translation update.
Import stats dialog - proper inflection.
More translation strings for the main menu.
A lot of fuzzies reviewed.
Some minor mistakes shown during GUI testing fixed.

svn: r22444
2013-05-28 10:37:35 +00:00
cc8b166138 Fix error in template map, key should be the types, not strings
svn: r22443
2013-05-28 10:17:31 +00:00
9b1af034fc Use term source template, not source type
svn: r22442
2013-05-28 10:14:16 +00:00
f167507a0f Start with GUI ideas for GEPS 018
http://www.gramps-project.org/wiki/index.php?title=GEPS_018:_Evidence_style_sources


svn: r22441
2013-05-28 09:56:38 +00:00
b07717ad86 Split double field corresponding with log date in citatin object
svn: r22440
2013-05-28 09:50:53 +00:00
b7d1f6906c Rationalize fields:
* consistent use of first/last
 * no numbered entries, use (SHORT) where needed
 * consistent use of single or plural (AUTHOR, PAGES)


svn: r22439
2013-05-28 09:26:32 +00:00
b2b6bcb56a Use for description of source type same order as in the csv.
Add some comments lines with explanation


svn: r22438
2013-05-27 20:26:48 +00:00
9a0bc027fe 6781: Allow editing in displaytabs for some fields
svn: r22437
2013-05-27 19:59:27 +00:00
77ceea2931 Remove errors due to too much spaces in fields
Start type at a save value of 100


svn: r22436
2013-05-27 19:45:30 +00:00
e50182508a standardize top three xx.po lines, if needed
svn: r22435
2013-05-27 19:32:59 +00:00
2ffbd49b55 Remove extra Id line from maclocale.py
svn: r22431
2013-05-27 17:42:11 +00:00
a5700a28df 6780: Add privacy column to displaytabs
Extend to grouped displaytabs, and to specific family versions of tabs


svn: r22430
2013-05-27 14:03:37 +00:00
facfeada47 czech translation update
svn: r22429
2013-05-27 13:02:45 +00:00
8f412bae1c 6780: Add privacy column to displaytabs
svn: r22428
2013-05-27 12:16:59 +00:00
188587bbaf Make it possible to show private icon in displaytabs
Enable this already in Attribute and SrcAttribute 


svn: r22427
2013-05-27 09:35:31 +00:00
0a8c9bc2e2 Fix bad scaling in address editor
svn: r22426
2013-05-26 19:37:16 +00:00
bf29e57039 2332: Allow reorder of Data in the Data tab of Source: make Data SourceAttribute, which have sourcetype,
link with GEPS 018: Evidence
This is step 1 needed for GEPS 018. All types are defined needed to evidence style references
This commit also contains fix for 6777: Crash on export to GEDCOM when there are addresses


svn: r22423
2013-05-26 19:28:57 +00:00
3d9559cfae 6769: gramps crash for ancestor chart report
svn: r22422
2013-05-26 18:40:09 +00:00
2b5d7efdce Some errors during development hang Gramps. Putting all in try block to avoid this
svn: r22420
2013-05-25 19:36:25 +00:00
25c5e6fbc8 Bugs 6099 & 6472: Don't leave zombies and report errors
Update spawnve() to subprocess.check_output()
Pop an ErrorDialog if the system's open command fails in
open_file_with_default_application()

svn: r22417
2013-05-24 23:36:18 +00:00
6a4a4a3a9c fix string FIXME, add context for translation, as string freeze is over
svn: r22415
2013-05-23 17:20:56 +00:00
7792f0f5de 6724: Person selected jumps forward to next person inlist
svn: r22411
2013-05-22 21:23:22 +00:00
98ef6cfcb3 6670: Some entries into tips.xml are increasing size of the 'Tip of the day' dialog
svn: r22408
2013-05-22 11:59:16 +00:00
266a2936bf 6325: Cannot right-click on tables in Quick Views
svn: r22406
2013-05-22 11:07:23 +00:00
57d2951cdf Mac: Fix osm-gps-map version, remove osmgpsmap-py
svn: r22400
2013-05-21 23:37:18 +00:00
43e5416d0e czech translation update
svn: r22387
2013-05-21 12:27:47 +00:00
bf9257bb92 6754: Gramps Python 2.7 close when chosing a place by typing the place name in the list
svn: r22380
2013-05-20 19:26:27 +00:00
ff21b0bb27 Move pybsddb module to gtk-osx-python.modules
svn: r22377
2013-05-19 15:59:03 +00:00
873df14509 Match gramps.modules to gramps-40 version
svn: r22376
2013-05-19 15:58:29 +00:00
ff7f04d7e9 add "Id" property, and "Id" line, and license line, if any were needed
svn: r22372
2013-05-18 22:51:36 +00:00
3fe84ba8fe add Ukrainian date handler to SVN for testing, not enabled yet (__init__.py), contribution by Fedir Zinchuk
svn: r22367
2013-05-18 15:25:51 +00:00
76a7d7adde 1780: End of Line Report options window - changing Output Format cause change active tab to "report options"
This also happens on every other report, of course.
(I will commit this to gramps40 when its "code freeze" is over.)


svn: r22358
2013-05-17 16:11:14 +00:00
0d38f4f5a4 don't start a GraphViz report on the "Paper Options" tab
None of the other reports start on the "Paper Options" tab.
(I will commit this to gramps40 when its "code freeze" is over.)


svn: r22354
2013-05-17 15:24:39 +00:00
9a9f47dc28 0006746: Problem in Portable version immediately after upgrading to 3.4.4-1 from 3.3.1.1
svn: r22345
2013-05-17 11:30:06 +00:00
919005c539 Mac: Fix gexiv2-libtool.patch to work if libtool isn't in $PREFIX
It must be on the path.


svn: r22334
2013-05-17 06:01:34 +00:00
532a6d6171 Fix \n errors in two translation files
svn: r22333
2013-05-17 05:58:06 +00:00
0c5beeecfd Mac: Generalize gexiv2-libtool.patch
svn: r22332
2013-05-17 05:24:44 +00:00
0dbeb270f9 Mac: Use gnome.org modulesets
svn: r22329
2013-05-16 19:24:22 +00:00
c627290799 Mac: Redo trunk gramps.modules for current dependencies
svn: r22328
2013-05-16 17:28:44 +00:00
e3697e183a Forward ported translations from 4.0
svn: r22326
2013-05-16 13:53:16 +00:00
b40119cedf Translation update - ru.
svn: r22321
2013-05-15 19:38:38 +00:00
f5665dc67b merge content of NEWS after "3.4.4" release
svn: r22314
2013-05-15 09:08:08 +00:00
574384268e Fix ListModel double click event
svn: r22306
2013-05-14 18:13:27 +00:00
076fdac5a7 0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name.
svn: r22298
2013-05-14 15:42:42 +00:00
5999f7c0a1 0006394: GEDCOM import errors truncated too much. Error message extended to 66 chars as suggested (and continuation lines formatted to fall under initial line)
svn: r22295
2013-05-14 15:02:57 +00:00
49645c6957 Encoding error in date parsing literals
svn: r22288
2013-05-13 23:11:00 +00:00
8744e93fd9 0006195: Import from pro-gen. Fix citations and sources. Also other fixes: Attach SOUR TEXT as note on citation. Ensure gramps_ids are not duplicated (change map record so it maps from Pro-Gen ID to handle), and format gramps_id according to the user's preference setting. Store 'aktenr' as REFN attribute or data. Store TITL (and _TITL2 and _TITL3) as comma separated Title. Store patronymic correctly. Prevent duplication of Baptism source text. Store RESI event for person address. Store family 'Relatie code' (FAM REFN/FAM CODE) as REFN. Note testing is limited by availability of test data.
svn: r22287
2013-05-13 23:05:17 +00:00
b0a3666e5a any documentation is better than none
svn: r22283
2013-05-13 22:21:47 +00:00
04e3543274 Geography : bug #6718 : The active place must have valid coordinates to set center and zoom.
svn: r22282
2013-05-13 20:10:04 +00:00
6d8d8a3b6b small translation and uptades
svn: r22276
2013-05-13 12:28:10 +00:00
6ec4227248 add name-format option and enable translated output for this report
svn: r22272
2013-05-12 22:35:09 +00:00
9c847462a0 0006515: Error building narrated web
Circular references (either direct or indirect) involving media->citation->media or media->citation->source->media cause NarrativeWeb to crash with "maximum recursion depth exceeded". Fix NarrativeWeb when constructing list of objects to be output by checking whether a media object has already been encountered.

Also fixes
0006418: Navweb crashes alpha4
0006630: Export Erzählende Webseite
0006643: Crash during making webstek report
0006652: [NarrativeWeb] Circular References lead to endless recursion (crash)
0006654: Unable to created narrated web report

svn: r22270
2013-05-12 16:45:06 +00:00
fcd2296461 enable translated output for this report
svn: r22263
2013-05-11 19:22:17 +00:00
0ce4b749d0 more deferred translation for the relationship calculator
This enables it for spouse strings, which are done in the
main gen/relationship.py relationship calculator and not in
one of the language-specific relationship calculators


svn: r22261
2013-05-11 19:20:12 +00:00
9aa9d43856 6580: Merging Media Notes fails
svn: r22258
2013-05-11 17:43:04 +00:00
7edd984b91 6716: Add extra surname, on tab away from field, value is not stored
svn: r22253
2013-05-11 12:07:02 +00:00
9e757e2249 move five files with translatable strings out of POTFILES.skip
svn: r22247
2013-05-10 17:02:00 +00:00
7f264b91f5 6665: New errors when using pygobject 3.8: Cannot get n_columns on flatbasemodel
svn: r22245
2013-05-10 16:03:37 +00:00
98bfecc918 0006713: Databases written with pickle protocol 3 (Python3) should not be opened with pickle protocol 2 (Python2). Also give warning when about to upgrade a Python2 database to Python3.
svn: r22243
2013-05-10 14:38:51 +00:00
be23e20276 czech translation update
svn: r22239
2013-05-10 10:20:51 +00:00
ab15b85566 Fix to incorrect svn merge in commit 22219 see 0006686: Wrong bsddb upgrade message given
svn: r22238
2013-05-10 09:25:27 +00:00
cf04a983a4 Fix scroll to mark bug on added page
svn: r22236
2013-05-10 00:07:16 +00:00
7ba9ca93da Simple table fix for numneric and checkbox columns
svn: r22234
2013-05-09 23:52:56 +00:00
620ba618c2 defer translation for one more date, and cleanup translation
svn: r22232
2013-05-09 22:27:41 +00:00
0a22c95aa2 Convert numeric columns to unicode in simple table
svn: r22230
2013-05-09 21:47:42 +00:00
11e45f293f 6259: Harcoded 'raw' characters into listing files are not properly displayed into Addons dialog
Gramps-addons listings has been fixed needing this change to have this working


svn: r22228
2013-05-09 20:47:04 +00:00
86b7a99101 Fix path left over from debugging session
svn: r22225
2013-05-09 19:32:47 +00:00
735adfb0c1 0006529: Cancelling database upgrade can corrupt the database. Ensure database is unlocked when cancelling upgrade. Make links in dialogues into clickable hyper-links. Ensure dialogue windows stays on top. Reword warning and error messages to use Bsddb version, schema version and Family Tree consistently, to be clearer about the choice the user is being offered, and to provide hyper-links to more information.
svn: r22219
2013-05-09 17:24:40 +00:00
547f0cacf7 enable deferred translation for this Span representation
svn: r22216
2013-05-09 17:04:55 +00:00
be6665e99d 6706: some translation messages were missing, update template, add better comments on POTFILES.skip
svn: r22213
2013-05-09 10:49:36 +00:00
f215a12733 6706: update POTFILES.in POTFILES.skip
svn: r22210
2013-05-09 07:43:34 +00:00
d8e3e0fb6f enable translated output for this report
svn: r22208
2013-05-09 05:03:52 +00:00
ce44a4e57a enable deferred translation for a Span representation
svn: r22206
2013-05-09 05:01:47 +00:00
3555289c39 6595, 5621: temp workaround for xgettext bug (not yet fixed on GNU gettext 0.18.2), see https://savannah.gnu.org/bugs/index.php?29216
svn: r22204
2013-05-08 09:25:10 +00:00
612b893956 better PEP-0008 (trans_text_ ==> trans_text)
PEP-0008 reserves the use of a trailing underscore for names
which conflict with Python keywords, which this doesn't.

The goal is to have a permanent name which is unique across
the gramps namespace, since it is defined (in po/genpot.sh
and po/update_po.py) as a keyword to flag strings to be put
into the translation "catalog" file (gramps.pot).

The new keyword "trans_text" is still unique.  (Also "_T_".)


svn: r22201
2013-05-07 18:59:43 +00:00
6930887aa1 "_ngettext" is no longer used as a gramps translation keyword
svn: r22199
2013-05-07 18:12:41 +00:00
31699972b8 enable translated output for this report
svn: r22197
2013-05-07 17:17:22 +00:00
7187eb8ab6 enable deferred translation for the relationship calculator
svn: r22195
2013-05-07 17:14:18 +00:00
4621d09d4d 6659: Justified paragraph layout does not work in "Custom Book Text" in book report
svn: r22190
2013-05-07 12:35:33 +00:00
7f411bb964 enable translated output for this report
svn: r22189
2013-05-06 19:47:00 +00:00
6c50df1ff8 Minor updates.
svn: r22187
2013-05-06 16:54:20 +00:00
2201a7d4db Translation update - ru.
test commit in my trunk git/svn env

svn: r22184
2013-05-06 10:50:34 +00:00
b2b693ae19 add new keywords to po/genpot.sh, comment both scripts, and add "Id" lines
svn: r22183
2013-05-05 19:41:13 +00:00
9cddf824a2 6582: Fix problem with warning message
svn: r22181
2013-05-05 18:17:52 +00:00
5e42724282 6595: missing custom keywords support for intltool
svn: r22178
2013-05-05 12:54:13 +00:00
a268271833 Fix participants column in event selector
svn: r22176
2013-05-04 23:10:58 +00:00
73d1d080b5 GrampsLocale: When checking translations check full locale first
So that e.g. en_GB will be preferred over en if en_GB is in fact the
desired translation.

svn: r22173
2013-05-04 20:23:47 +00:00
d5537ab93a Add translation to gen.merge.diff
svn: r22172
2013-05-04 20:23:37 +00:00
16dbd437e1 enable translation of the "Endnotes" section header-word for these reports
svn: r22171
2013-05-04 19:30:40 +00:00
52f2b9e46a more flexible multi-column format for BooleanListOption
svn: r22169
2013-05-04 18:54:38 +00:00
ecdc91160f 6595: add new keywords for xgettext (textual reports and L10N/I18N)
svn: r22167
2013-05-04 17:34:35 +00:00
dc89736d4a 6595: create a new template every time we are extracting strings from python modules
svn: r22164
2013-05-04 15:54:14 +00:00
a2d84df7c8 6595: update template; sometimes old entries are remaining (maybe related to join code?)
svn: r22163
2013-05-04 15:41:16 +00:00
4ecedd6148 6672: Gallery: 'TreePath' object does not support indexing; it also works with pygobject 3.3.2
svn: r22162
2013-05-04 14:30:14 +00:00
0509177b08 6576: add an optional helptext as tooltip on add_pos_int(); provide a list and sample of pango convenience markups and combinaisons
svn: r22159
2013-05-04 06:14:08 +00:00
da7f594765 enable translated output for this report
svn: r22156
2013-05-04 02:07:51 +00:00
da72bfbafb disambiguate the local report argument name (vs. the similar global name)
svn: r22154
2013-05-03 19:17:56 +00:00
eb0bbd43d1 6668: number of arguments for notify_db_error() into Export assistant
svn: r22148
2013-05-02 18:15:00 +00:00
c685be2973 6656: division on hexadecimalcolor
svn: r22146
2013-05-02 17:25:24 +00:00
4cb0e92643 6576: Set custom pango markup can generate GtkWarning, ValueError or TypeError
svn: r22144
2013-05-02 15:43:19 +00:00
9f61c09829 6641: Complete Individual Report crashes gramps
svn: r22140
2013-05-02 13:26:21 +00:00
af584bb950 6659: Justified paragraph layout does not work
Actually: it works always, but pango does not justify partial lines...


svn: r22138
2013-05-02 08:51:08 +00:00
6a15e552ef enable translated output for this report
svn: r22136
2013-05-01 17:39:37 +00:00
3ab598d8f9 enable translated output for this report
svn: r22134
2013-05-01 17:38:28 +00:00
eca2313b31 enable translated output for this report
svn: r22132
2013-05-01 17:36:56 +00:00
bdafcda182 add New Zealand holidays (contribution by kerobe aka Ken B)
svn: r22127
2013-05-01 08:08:13 +00:00
c4e7179bfa 6624: import an exported XML crashes gramps 4.0 - Actually a logic bug python 2 does not crash on.
svn: r22123
2013-04-30 13:21:27 +00:00
dc39360017 make the name consistent, across gramps
svn: r22121
2013-04-29 22:10:18 +00:00
c3ce490fa2 enable translated output for this report
svn: r22119
2013-04-29 19:26:41 +00:00
4d0ed91cfa 6669: Descriptions for file formats into Export dialog are ignored by the translation
svn: r22117
2013-04-29 08:08:54 +00:00
a243a9bfac 5751: use "Minimum Confidence" label into citation sidebar filter, it does not match only one level
svn: r22116
2013-04-29 07:55:56 +00:00
a831bb0113 enable translated output for this report
svn: r22114
2013-04-28 19:28:42 +00:00
e709c127f6 enable multi-column paper choices, in report output
svn: r22106
2013-04-27 15:48:02 +00:00
f5eae77246 typos
svn: r22095
2013-04-24 01:01:47 +00:00
ad6ed26f70 enable translated output for this report
svn: r22093
2013-04-24 00:12:36 +00:00
8e76c93f25 change GuiFamilyOption precedence to match GuiPersonOption
(that is, use any "overridden" value, then any "active"
family, then any family of the "active" person, and only
then fall back on others, such as a saved-away family option
value, or any family of the user's "default" person)


svn: r22090
2013-04-23 18:07:20 +00:00
c1b9b826ef "Id" property added on rev21991, re-add it into a comment line
svn: r22086
2013-04-23 05:45:48 +00:00
2050e3f896 typo on rev22069
svn: r22085
2013-04-23 05:41:02 +00:00
647bd5800c enable translated output for this report
svn: r22084
2013-04-23 04:54:15 +00:00
f4cbda07ec enable translated output for this report
svn: r22082
2013-04-23 04:53:15 +00:00
346f982b27 enable translated output for this report
svn: r22080
2013-04-23 04:52:08 +00:00
6aeb49aefc enable translated output for this report
svn: r22078
2013-04-23 04:51:00 +00:00
be53411b39 enable translated output for this report
svn: r22076
2013-04-23 04:48:57 +00:00
df431da250 reenable translated report title
svn: r22074
2013-04-22 18:17:45 +00:00
c939b9d832 need context differences for the "To Do" translation string (patch by Harmen Huizinga)
svn: r22072
2013-04-22 07:42:10 +00:00
f546908d17 Cannot check $ID$ line as file...
svn: r22071
2013-04-22 07:39:39 +00:00
0149435358 minor update
svn: r22070
2013-04-22 07:37:31 +00:00
49c0af18ee need context differences for the "To Do" translation string (patch by Harmen Huizinga)
svn: r22069
2013-04-22 07:31:46 +00:00
8a4f89f8e3 from future imports must occur at the beginning of the file
svn: r22067
2013-04-22 07:16:03 +00:00
4f61f03bec indentation
svn: r22066
2013-04-22 07:14:27 +00:00
5db0763970 GrampsLocale: Fix 'Foo has no attribute _Foo__get_type' execption
From moving the set_locale function to the superclass. One can get
carried away with enforcing private attributes...

svn: r22062
2013-04-21 17:49:08 +00:00
143dcc08fa Bug 6533: Report plugin name when failing to load an add-on translation
Message now says (e.g.) WARNING: Plugin ExtendedAttributes has no translation for any of your configured languages, using US English instead

svn: r22039
2013-04-20 23:10:13 +00:00
2e453b678a GrampsLocale: Add explanatory comment
After I stopped myself from fixing something that was done right!

svn: r22038
2013-04-20 23:10:06 +00:00
a579fd1ad9 GrampsLocale: Mac: Align flow of user preferences to match other OSes.
Also add diagnostics to make Tim Lyons happy.

svn: r22037
2013-04-20 23:10:01 +00:00
2054c0ad46 GrampsLocale: Win32: Clean up extraneous conditions, don't set self.language prematurely
svn: r22036
2013-04-20 23:09:57 +00:00
a2e17b7b4a GrampsLocale: Posix: Move LC_MESSAGES check to setting self.language
svn: r22035
2013-04-20 23:09:51 +00:00
1832f7bdb5 GrampsLocale: Add some debugging messages.
Move the warning about failure to after the last attempt.

svn: r22034
2013-04-20 23:09:46 +00:00
9daf584c74 GrampsLocale: Init_from_environment: Change precedence
LC_MESSAGES takes precedence over LC_CTYPE for setting self.lang
$LANGUAGES overrides $LANG, $LC_FOO for setting translations

svn: r22033
2013-04-20 23:09:41 +00:00
e9770ef48f GrampsLocale: Fix indentation error
svn: r22032
2013-04-20 23:09:36 +00:00
7a17f9b420 MacLocale: Make sure the overrides work correctly
And that we follow the user's preferences correctly or issue a warning that we've defaulted to US English if we can't.

svn: r22031
2013-04-20 23:09:31 +00:00
fefe1f842a Supply a concatstrings PostScript function
To allow postscript documents to work without Ghostscript.

svn: r22030
2013-04-20 23:09:26 +00:00
b7f6055af8 Use GrampsLocale.encoding to get the code set instead of locale
svn: r22029
2013-04-20 23:09:21 +00:00
467a9b1c43 GrampsLocale: Replace gen.plug.utils gfloat()
With GrampsLocale.float().
Also remove gen.plug.utils gformat(), which was written to work
around string formatting with %f localizing the decimal point,
which it doesn't do. locale.format() does, but it wasn't being
used anyway.

svn: r22028
2013-04-20 23:09:16 +00:00
769203162c GrampsLocale: Wrap locale.format and locale.format_string
To concentrate the locale dependency in grampslocale.py

svn: r22027
2013-04-20 23:09:09 +00:00
963712e978 Remove some imports of locale where nothing it exports was used.
svn: r22026
2013-04-20 23:09:02 +00:00
0a6ff725ac Take the localization debug info from GrampsLocale instead of locale
svn: r22025
2013-04-20 23:08:53 +00:00
6400b8b29c GrampsLocale: Add GrampsLocale attributes numeric and currency
svn: r22024
2013-04-20 23:08:48 +00:00
6804278fc1 MacLocale: Fix missing subscript.
svn: r22023
2013-04-20 23:08:42 +00:00
a364740fae Mac: Update trunk bundle file to match gramps40
svn: r22022
2013-04-20 23:08:35 +00:00
dc128110bc typos
svn: r22021
2013-04-19 16:58:24 +00:00
3a06d7b204 typo
svn: r22017
2013-04-18 20:56:27 +00:00
9804301762 give the "ahnentafel" report a user-settable title string
(since many English speakers do not know what "ahnentafel" means)


svn: r22015
2013-04-18 19:08:46 +00:00
f0ea234060 add name-format option to the three GraphViz reports
svn: r22013
2013-04-18 17:16:47 +00:00
57f6f389a8 6645: unable to do Spanish kinship report, 4185: Julio's patch
svn: r22011
2013-04-18 09:06:38 +00:00
cceb28c5b9 refactor: move name_format into stdoptions.py
svn: r22009
2013-04-17 20:49:50 +00:00
12777d3fb9 6623: funny GUI report-language display
svn: r22006
2013-04-16 22:19:27 +00:00
2ded1e5e8a 6462: GEDCOM import fails (patch by Enno Borgsteede)
svn: r22000
2013-04-15 22:00:12 +00:00
86686c764b 6618: Export CSV crashes gramps 4.0 beta
svn: r21998
2013-04-15 11:01:08 +00:00
83fb5d353d 6635: retry of bug 6443, exec missing globals
svn: r21996
2013-04-15 09:40:39 +00:00
07b84e5e11 6623: funny GUI report-language display
svn: r21995
2013-04-15 09:15:45 +00:00
d50b4ced58 add "Id" property and line, and stdoptions.py
svn: r21991
2013-04-13 23:35:10 +00:00
5f98900c27 Remove unnecessary (and broken in Py3) import
svn: r21977
2013-04-13 14:31:30 +00:00
bc63594df4 6622: Change regular expression rules to use search rather than match
svn: r21976
2013-04-13 14:30:21 +00:00
227dc5f7b4 add "Id" property
svn: r21971
2013-04-13 02:55:03 +00:00
00aa00fbf5 GrampsLocale: Remove get_translation()
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.

svn: r21968
2013-04-12 22:32:11 +00:00
56254d4a14 GrampsLocale: Integrate libtranslate functions into GrampsLocale
And remove libtranslate

svn: r21967
2013-04-12 22:27:54 +00:00
665206df85 GrampsLocale: Extract 2 reporting functions
set_translation() to the Report class
Add a new module stdoptions to gen.plug.report with function
add_localization_option(). The intent of stdoptions is to reduce the code-copying among reports; this is the first bit.

svn: r21966
2013-04-12 22:27:44 +00:00
27f667e343 GrampsLocale: Add get_date and get_type functions
To enable GrampsLocale to replace libtranlate.py's Translation
class.

svn: r21965
2013-04-12 22:27:32 +00:00
db66851363 GrampsLocale: Add date_parser and date_displayer properties
svn: r21964
2013-04-12 22:27:23 +00:00
6f078627ca MacLocale: Capture collation qualifications
svn: r21963
2013-04-12 22:27:15 +00:00
2c532baf1c GrampsLocale: Make dictionaries class variables
lang_map and country_map

svn: r21962
2013-04-12 22:27:05 +00:00
a422b30fd6 GrampsLocale: Refactor/clean up initialization
Includes moving encoding to be a class variable.

svn: r21961
2013-04-12 22:26:55 +00:00
25315ceece add person-index entries, for book report
svn: r21953
2013-04-10 21:56:10 +00:00
87c11877f4 add TOC and index entries, for book report
svn: r21952
2013-04-10 20:26:35 +00:00
d96c766cb1 add TOC entry, for book report
svn: r21949
2013-04-10 19:05:41 +00:00
3702704ef2 missing import
svn: r21948
2013-04-10 19:01:14 +00:00
36f27ebefb 6599: Fix python3 error
svn: r21945
2013-04-10 17:39:31 +00:00
aa0e413d5f 6599: Add regex parameter to rules which override the constructor
svn: r21943
2013-04-10 13:25:02 +00:00
a71e8f5689 Update for spelling of Family Tree.
svn: r21938
2013-04-10 09:34:27 +00:00
3aaa4641d7 Update for spelling of Family Tree.
svn: r21937
2013-04-10 09:33:41 +00:00
59d9bc25c0 6599: Add regular expression option to rules using the match_substring method
svn: r21935
2013-04-09 13:52:09 +00:00
b5997bdb45 existing name for gexiv2 package
svn: r21932
2013-04-09 13:50:39 +00:00
f91db9f5e1 6608: typo
svn: r21931
2013-04-09 13:49:30 +00:00
d2c5629b9d enable "indent spouse" option to /not/ indent a spouse
svn: r21925
2013-04-08 15:07:53 +00:00
99075d48a7 czech translation update
svn: r21921
2013-04-08 12:28:30 +00:00
6d60fadb4e Pending 'it' translation updates for 3.4, forward-port to 4.0 and trunk
svn: r21915
2013-04-07 21:36:50 +00:00
cb028cea56 6599: Fix matching empty fields in empty locations using regular expressions
svn: r21913
2013-04-06 17:27:26 +00:00
c5fe6ed881 clarify and qualify release information
svn: r21910
2013-04-06 16:57:29 +00:00
8fbddda976 merge minor fixes from 4.0.x
svn: r21908
2013-04-06 12:01:08 +00:00
01b4b7dc4e GrampsLocale: Ensure self.encoding exists before testing it
svn: r21899
2013-04-05 23:40:55 +00:00
e21ba6c432 GrampsLocale: Clean up _init_from_environment even more
And do it right this time!

svn: r21898
2013-04-05 23:40:49 +00:00
445f10396a Put maxsize back
svn: r21896
2013-04-05 17:14:32 +00:00
61205f8783 say pyexiv2 is no longer needed, and slight reformatting
svn: r21893
2013-04-05 17:00:30 +00:00
60b57a996e write.py: After the bsddb version has been upgraded, if the schema versions also needs to be upgraded, output a separate dialog asking the user whether he wants to upgrade the schema. (As requested by Benny).
svn: r21888
2013-04-05 10:54:35 +00:00
b72ddb7f47 GrampsLocale: Improve windows handling of no locale
svn: r21882
2013-04-04 21:06:19 +00:00
04c146669b GrampsLocale: Ensure posix collation and calendar are set correctly
svn: r21881
2013-04-04 21:06:09 +00:00
fc23bbd93a GrampsLocale: Better handling of unset $LANG or $LANG == 'C'
svn: r21880
2013-04-04 21:04:48 +00:00
0daf403859 6579: Check and Verify crashes
svn: r21879
2013-04-04 20:08:30 +00:00
689e4d4b47 formatting cleanup
svn: r21875
2013-04-04 10:50:37 +00:00
fe6fb5e67a 6590: gramps40 asciidoc.py crashes for at least some reports
svn: r21873
2013-04-04 10:13:26 +00:00
4bf42dc5ca 6591: converted bytes of media in a string to show in quickview
svn: r21871
2013-04-04 09:53:54 +00:00
7b7836267a More exception text
svn: r21869
2013-04-04 09:31:39 +00:00
0c2c56ec4c fix python3 error and improve upgrade text
svn: r21867
2013-04-04 09:26:53 +00:00
6ddff4b560 update Debian control file according to README file
svn: r21863
2013-04-03 16:53:23 +00:00
df1ab10041 typo for handling one translated string
svn: r21862
2013-04-03 16:52:39 +00:00
a8c7156b76 GrampsLocale: Fix MSWin Syntax error
Can't do everything the C way :-(

svn: r21858
2013-04-03 03:55:17 +00:00
ea9ddaba69 GrampsLocale: Win: Check both forward and reverse mslocale
svn: r21854
2013-04-02 20:25:08 +00:00
4dc31ff808 ImportProGen: Fix "with" statement syntax.
svn: r21853
2013-04-02 20:25:03 +00:00
f2809f4249 0006529: Cancelling database upgrade can corrupt the database. Check whether the bsddb version has changed (or was originally unknown). If it is an upgrade, ask the user whether he has made a backup, and is ready to upgrade. If so, made a zip backup and open the database with the new bsddb version. Make messages on the dialogues more explicit with the version numbers mentioned.
svn: r21852
2013-04-02 16:06:36 +00:00
4be0f93da9 send a CLI error string to stderr
svn: r21849
2013-04-02 05:07:41 +00:00
0196351c25 GrampsLocale: Report the plugin when complaining
About not being able to find a translation.
Well, that's usually the source of this warning. With an unsupported
locale it will say "share".

svn: r21845
2013-04-02 00:05:56 +00:00
a15e676eef [Bug 6495] Translator class should use english date
When "English" is set via libtranslate.

svn: r21844
2013-04-02 00:05:50 +00:00
1e96009cd7 updated nl translation
svn: r21843
2013-04-01 18:30:08 +00:00
a3cc615398 GrampsLocale: Fix NoneType error
svn: r21839
2013-04-01 17:34:26 +00:00
4ceba9fd03 translate a few CLI strings
svn: r21837
2013-04-01 14:58:22 +00:00
a715d8b699 add some suggestions and recommendations
svn: r21836
2013-04-01 08:41:11 +00:00
b10de7808d [Bug 6553] Get Datehandler base language from GRAMPS_LOCALE.calendar
svn: r21831
2013-03-31 22:46:31 +00:00
0cab5e576c GrampsLocale: Better initialization from environment
Splits out Win32 and Posix initializations to take account of the
fact that on Win32 setlocale() ignores environment variables and on
Posix it's not necessary to check them because setlocale() does the
right thing.

svn: r21830
2013-03-31 22:46:25 +00:00
2fe5255b11 ImportProGen: Prevent leaking file handle
svn: r21829
2013-03-31 22:46:17 +00:00
54c228882c 0006483: Listing the Family Trees can corrupt them. Changed get_dbdir_summary to exit if the bsddb_version is not the current bsddb and to return both BSDDB and schema version. Changed family_tree_summary to output both versions. Changed argparser and arghandler to additionally support -t (table) option to list family tree in tab delimited format.
svn: r21828
2013-03-31 22:09:41 +00:00
da5d7212b2 updated nl translation
svn: r21825
2013-03-31 19:03:49 +00:00
97782082d5 debianize for dh_python2 support
svn: r21822
2013-03-31 17:10:50 +00:00
a88de7bf8a 6589: no TOC entry for b.r. multi-page no-title ancestor/descendant trees
svn: r21820
2013-03-30 21:01:21 +00:00
262dae3374 6568: graphic descendant tree report inserts a bogus title
svn: r21818
2013-03-30 04:33:15 +00:00
9ad832be33 6568: graphic descendant tree report inserts a bogus title
svn: r21816
2013-03-29 20:49:17 +00:00
491885b419 clarify use of all_handles methods
svn: r21813
2013-03-29 20:02:54 +00:00
7be12778b2 6417: alpha4 filtering screws up Export
svn: r21811
2013-03-29 19:39:21 +00:00
33ec71c6f7 6492: Verify crashes with python 3
svn: r21809
2013-03-29 16:59:04 +00:00
95e86802c7 6460: Crash during Extract Event Description
svn: r21807
2013-03-29 15:56:54 +00:00
415d6c6367 6346: If a exporter plugin crashes, the Export Assistant can't be closed
svn: r21805
2013-03-29 13:18:35 +00:00
df45f4645b 0006578: referencedbyselection.py process_object calls non-existant process_note method
svn: r21804
2013-03-28 23:32:56 +00:00
1937a9932b 6369: BooleanOption does not support underline
svn: r21800
2013-03-28 18:43:26 +00:00
d6f621fe72 0006544: No test for checking if Place handle exists when looking at media reference via proxy
svn: r21798
2013-03-28 18:29:59 +00:00
ba97c071ef minor syntax error
svn: r21794
2013-03-28 18:09:34 +00:00
900c2e9ff8 6369: Accelerator keys, Gtk and User Interface
svn: r21792
2013-03-28 16:52:47 +00:00
2636d36245 6340: In Family Tree Manager window, naming a tree which takes it out of view does not scroll to new name
svn: r21790
2013-03-28 16:23:26 +00:00
1a36e77b0c 6577: Mulltiple drop from clipboard on embeddedlist not working
svn: r21788
2013-03-28 16:02:10 +00:00
16ba9f25de referencedbyselection.py. 0006493: crash during Calculate Preview of a filtered XML export.
svn: r21787
2013-03-28 14:32:11 +00:00
3783a8039b 6569: transferring from the clipboard causes gramps40 svn 21740 to crash
svn: r21783
2013-03-28 13:53:52 +00:00
591f695bc9 6521: README needs to be updated, before release
svn: r21781
2013-03-28 12:30:20 +00:00
f4d503744f 6319: Remove libgrdb
svn: r21780
2013-03-28 12:24:36 +00:00
c64f64657f Python3 UnicodeDecodeError in python3 on unpickling data saved in python2
svn: r21777
2013-03-28 10:47:48 +00:00
f59b8fb7d8 5163: Another crash in same editor.
svn: r21775
2013-03-28 10:02:36 +00:00
ccb23bd7c4 6496: GUI Export fails in gramps40
svn: r21773
2013-03-28 09:09:20 +00:00
c45a2a0e88 6443: try to use remove unused objects tool
svn: r21772
2013-03-27 19:57:45 +00:00
e670f27f3c support python 3
svn: r21769
2013-03-27 19:56:43 +00:00
dee6a9b829 6402: Error in ValidatedMaskedEntry widget
svn: r21768
2013-03-27 18:05:45 +00:00
e86bd066c1 6561: v3.4.3 NarWeb creation fails for German, Swedish
svn: r21766
2013-03-27 17:01:17 +00:00
aac3f0d2e3 6484: IndexError for sort_data/column on quick view table
svn: r21762
2013-03-27 14:22:20 +00:00
ba5a42eb3f re-debianize
svn: r21761
2013-03-27 14:17:44 +00:00
cd6a2b70c4 6470: Crash by filtering with filter bar in person tree view
svn: r21759
2013-03-27 13:47:04 +00:00
f431346394 0006564: svn 21740 restores bug 0006411 - Navweb crashes during creation of Media pages
svn: r21755
2013-03-26 19:29:13 +00:00
f432853dc4 GrampsLocale: Separate self.encoding from sys.stdout.encoding
Because python standard library functions encode to
locale.getpreferredencoding or sys.getdefaultencoding, not to
sys.stdout.encoding.

svn: r21753
2013-03-26 19:16:49 +00:00
e142003601 restore SVN number to "gramps -v" output
svn: r21751
2013-03-26 19:01:54 +00:00
c8a6b91113 slightly better CLI help
svn: r21750
2013-03-26 17:50:43 +00:00
bd87b3f310 6501: Cannot crop via mouse cursor into Media reference editor
svn: r21742
2013-03-25 20:04:24 +00:00
dc054763c3 6528: Place Names with & in name fail to display
svn: r21741
2013-03-25 14:31:18 +00:00
b4b9300f6d Fix literals. Use logging for warnings.
svn: r21739
2013-03-25 13:35:08 +00:00
e64adc8ddd try to build .deb for 4.0; http://gramps-project.org/wiki/index.php?title=Debian, update control file
svn: r21737
2013-03-25 11:27:35 +00:00
bd1020314e totally revert the whole 21728/21729 open=>io.open changes
svn: r21734
2013-03-24 22:27:11 +00:00
c34610e60d revert 21728/21729 open=>io.open change, for Windows
svn: r21733
2013-03-24 17:46:16 +00:00
b5d75c54d4 modify (semi-revert) 21728/21729 open=>io.open change, for Windows
svn: r21730
2013-03-24 15:48:36 +00:00
4db73f0422 more open=>io.open changes, as John advised
svn: r21729
2013-03-24 00:11:05 +00:00
5adc2102a2 Add Tag class to CallbackManager
svn: r21727
2013-03-23 22:26:35 +00:00
c4d6d17d69 6544: add warning if place on event is missing by using proxies sequence
svn: r21724
2013-03-23 17:14:24 +00:00
8ed298daa0 another open=>io.open change, as John advised
svn: r21720
2013-03-23 15:25:53 +00:00
0c46e5d91a slight tweaks to booklist format
svn: r21719
2013-03-21 20:46:46 +00:00
64b44a16db Some updates.
svn: r21716
2013-03-21 09:35:08 +00:00
2c41488ea3 CLI typos and slight code cleanup
svn: r21712
2013-03-20 16:16:04 +00:00
9be852fe2c 4687: missing content migration...
svn: r21711
2013-03-20 14:06:59 +00:00
f97c241af6 4687: global name 'warn' is not defined
svn: r21706
2013-03-20 13:55:18 +00:00
156ae935af merge after 3.4.3 release
svn: r21704
2013-03-20 13:47:55 +00:00
e3193c7511 Fix bug in citations bottombar gramplet
svn: r21703
2013-03-19 23:15:35 +00:00
b51b6b59a6 TreeBaseModel: Avoid TypeError when bisecting
svn: r21696
2013-03-19 18:22:35 +00:00
548507008b GrampsLocale: Ensure correct stdout encoding
Replace stdout with one that uses a transcoding Streamwriter. This
better handles differences between Py2 and Py3 than does trying to
encode strings prior to output. In particular Py3's default stdout
demands unencoded strings and prints byte-strings when one tries to
pre-encode them.

svn: r21695
2013-03-19 18:22:19 +00:00
796b2da855 GrampsLocale: Use glocale.lang or glocale.language[0]
To get the default localization instead of locale.getlocale() or 
glocale.get_translation().language().

svn: r21694
2013-03-19 18:21:58 +00:00
ec787da3fa GrampsLocale: Prevent some AttributeErrors and 'referenced before assignment' errors.
svn: r21693
2013-03-19 18:21:41 +00:00
9e8f6aaab6 6542: book report: graphic ancestor or descendant tree reports fail
svn: r21679
2013-03-18 18:54:59 +00:00
d3a389750f README file. Add PyICU as strongly recommended.
svn: r21675
2013-03-17 14:46:46 +00:00
71c2655976 Revert change to const.py
svn: r21673
2013-03-17 12:29:17 +00:00
d643dde344 Standardise messages about missing modules to include problem, consequence and what to do about it (currently including references to GEPS 029 where necessary).
svn: r21671
2013-03-17 11:40:33 +00:00
8882527e56 ignore any CLI book report "item" which crashes
svn: r21669
2013-03-16 22:50:41 +00:00
084b816d5b Add methods used for modal ProgressMeter to CLIDialog
svn: r21666
2013-03-16 21:47:37 +00:00
c3a58693e3 Add modal option to ProgressMeter
svn: r21663
2013-03-16 19:48:29 +00:00
aa609f7587 6195: Import citation for pro-gen file format (patch by keestux)
svn: r21659
2013-03-16 10:26:21 +00:00
12396e858b 6336: Convert to use DbGUIElement
svn: r21656
2013-03-15 21:02:52 +00:00
68158b3859 6526: Check for invalid handle
svn: r21653
2013-03-15 16:17:58 +00:00
29292a404a GrampsLocale: Code cleanup
And make sure that setting lang on the GrampsLocale constructor
overrides the languages from the first instance.

svn: r21646
2013-03-14 23:01:09 +00:00
76ef85b43f Plugins: Limit addon translators
Only get an addon translator if the plugin has a locale directory
Prevents pointless warnings, esp. when the translations are in the
main Gramps message file.

svn: r21645
2013-03-14 23:01:03 +00:00
66ded552dd GrampsLocale: Suppress double printing of log messages
Grampsapp.py sets a global handler, so install one only during the first init and remove it when done.

svn: r21644
2013-03-14 23:00:57 +00:00
80ac126dfa GrampsLocale: Fix 2 mistakes from previous commit.
svn: r21641
2013-03-13 00:26:22 +00:00
c25d94b3a7 GrampsLocale: Reduce circular imports
Lets one import grampslocale directly in a test script:
>>> from gramps.gen.utils.grampslocale import GrampsLocale
>>> import os
>>> gl = GrampsLocale(lang='fr_FR.UTF-8', localedir=os.path.join('build', 'mo'))
>>> tr = gl.get_translation().gettext
>>> tr("List of known family trees in your database path\n")
u'Liste des arbres familiaux connus dans votre chemin de base de donn\xe9es\n'

svn: r21640
2013-03-13 00:05:46 +00:00
f270f08be8 GrampsLocale: Better handle invalid/missing locale
svn: r21636
2013-03-12 22:22:58 +00:00
9e844f0d64 MacLocale: Extract function _mac_get_gramps_defaults
And correct line handling on the languages list.

svn: r21635
2013-03-12 22:22:53 +00:00
7a70853eb5 Fix VERSION_DIR path
svn: r21634
2013-03-12 17:01:21 +00:00
2299b7fe5d Remove post-install script for linux
svn: r21630
2013-03-12 14:53:14 +00:00
33e45f9b40 Remove redundant code
svn: r21628
2013-03-12 14:40:27 +00:00
a6c09ef304 Fix some properties
svn: r21626
2013-03-12 14:24:22 +00:00
33d9b19ac7 GrampsLocale: Ensure that encoding gets set to something
In the C locale, locale.getlocale() returns [None, None]

svn: r21616
2013-03-11 22:44:29 +00:00
29cf6674b5 Install image files to $(prefix)/share/gramps/images
Instead of $(prefix)/share/gramps/icons/hicolor, which was an old (early Gtk2) theming requirement.

svn: r21615
2013-03-11 22:44:23 +00:00
ee639ec7da Move VERSION, VERSION_TUPLE, major_version from const.py to version.py
As noted in the previous change, importing const into setup.py tried to initialize GrampsLocale and ResourcePath, which won't work. Since all we want is the VERSION string, move that to a new file, gramps/version.py

svn: r21614
2013-03-11 22:44:15 +00:00
fa0eb6cebe Determine Paths at Runtime
Uses GRAMPS_RESOURCES to override the root location of the Gramps data files (which would normally be $(prefix)/share).
In setup.py install, writes $(prefix)/share to gen/utils/resource-path, installs that file, then deletes it again from the source tree. The presence or absence determines whether Gramps is running from the source directory or from an installation.

Const.py is now a static file; const.py.in is no longer used. Note that because importing const into setup tried to initialize things that we don't want initialized, VERSION is removed, and imported from gramps.version -- a file which will be added in the next change. Consequently, this commit will not run.

svn: r21613
2013-03-11 22:43:58 +00:00
56e29c162b GrampsLocale: Protect another setlocale instance
svn: r21612
2013-03-11 22:43:52 +00:00
7055827260 Exportgedcom and importgedcom. 0006382: ADDR tag in GEDCOM export does not contain a full address. On export, all the elements of the structured address are output as ADDR/CONT. On import the structured address takes precedence (as at present), but a warning is only given if an element in the free-form address is missing from the structured address.
svn: r21610
2013-03-11 18:45:09 +00:00
709eb0ebcd 6237: Suppress Gramps ID in Narrative Web report
svn: r21607
2013-03-10 23:55:08 +00:00
55e2863a0b sync a few files in gramps40 and trunk
svn: r21603
2013-03-10 21:51:52 +00:00
b60dbf2782 Grampslocale: Protect from crashes due to passing bad strings to setlocale
svn: r21597
2013-03-09 22:31:13 +00:00
40ff796d93 Mac: Improve language list handling
Make sure that lang overrides the language list only if $LANG is set. Don't add encodings to the language list (e.g., en_US, not en_US.UTF-8). Start collation with None, because `if collation:` is True for collation = "". defaults may have whitespace at the end of "root", so use "startswith".

svn: r21596
2013-03-09 22:31:06 +00:00
068d50cc26 GrampsLocale: Improve handling the language list
Replace "en" with "C" when setting $LANGUAGE ("en" confuses GtkBuilder), and explicitly iterate over languages when finding
the translator, because left to itself gettext will ignore English.

svn: r21595
2013-03-09 22:31:00 +00:00
f984692474 slight tweaks to text, add text property
svn: r21594
2013-03-09 17:48:22 +00:00
c9698f51e0 typo for handling translated strings
svn: r21589
2013-03-09 12:17:40 +00:00
9856e108e6 "os" is not defined
svn: r21588
2013-03-09 12:15:39 +00:00
7823280d22 handle CLI pathological case
svn: r21584
2013-03-07 23:30:21 +00:00
47b8dc8131 Revert of 215589 because of changes in the GTK package for Win
svn: r21581
2013-03-07 23:26:43 +00:00
a5b4759f40 6128: Reverse bug fix keeping code refactor
svn: r21577
2013-03-07 22:55:23 +00:00
5a64a968ff updated nl translation
svn: r21574
2013-03-07 20:15:51 +00:00
b5dc0630a6 0006507: GEDCOM import: Repositories not imported correctly from FTM for Windows and Heredis
svn: r21571
2013-03-06 17:42:14 +00:00
b262eeaab7 get_unicode_path_from_env_var(): make no-op if it's already unicode
svn: r21561
2013-03-06 01:07:05 +00:00
2dcc870dbc Adapt HTMLRenderer NavigationView init args to new signature
svn: r21560
2013-03-06 01:06:58 +00:00
dd3bb6122c GEexiv2 vor Python 2.7.3 and Win (see 6464)
svn: r21559
2013-03-05 21:56:09 +00:00
b57e7b7508 GrampsLocale:Move setlocale from _set_from_environment to __init_first_instance
So that encoding is set for Mac as well.

svn: r21554
2013-03-05 17:23:21 +00:00
cf4a3aefbd shorten the report name for easier CLI use
svn: r21552
2013-03-05 04:45:57 +00:00
78624360cd tweak the default format for the report
svn: r21551
2013-03-05 01:03:25 +00:00
09f276990f updated german translation
svn: r21548
2013-03-04 18:36:19 +00:00
7892d02a5d 6494: svn_revision module ignores translated SVN stdout value for "exported"
svn: r21546
2013-03-04 05:12:32 +00:00
1d4ae20433 skip error msg if no file exists
svn: r21544
2013-03-04 00:41:54 +00:00
694f757463 GrampsLocale: Add _win_bindtextdomain
Adapted from init_windows_gettext in Gramps3.
Libintl-8.dll must be on the path, just like all of the other C-library
dependencies.



svn: r21540
2013-03-03 23:40:27 +00:00
649bdf7bb7 GrampsLocale: Restore setlocale, add GrampsLocale.encoding
encoding to replace translation().info()['encoding'] which isn't 
the encoding we're looking for. 

svn: r21539
2013-03-03 21:55:02 +00:00
46d7c95f86 svn: r21538 2013-03-03 21:50:22 +00:00
ee3469233a Geography : #05742 note 27613 : cairo arguments differ from gtk2 draw arc.
svn: r21534
2013-03-03 10:57:03 +00:00
87838a3178 update Portuguese (Europe) translation by Frederico Muñoz
svn: r21533
2013-03-03 09:07:14 +00:00
1e208f02bb add ICU/PyICU to "gramps -v"
svn: r21531
2013-03-03 03:19:56 +00:00
f6ab91e87f GrampsLocale: Create GrampsTranslation attribute for language
Rather than relying on translators to correctly fill out po files

svn: r21526
2013-03-02 20:25:07 +00:00
67e975b31f GrampsLocale: Fix glocale without import
svn: r21525
2013-03-02 20:25:01 +00:00
41ff6f2fbd 0005058: Note reference on Attribute for individual is not filtered on Export. Fixed many other note references that are not filtered out.
svn: r21524
2013-03-02 19:30:41 +00:00
3cdfa558d6 Better translation for compare events.
svn: r21518
2013-03-02 13:45:46 +00:00
968b4a882d adaption for python version less 3.x (see issue 6465) for details
svn: r21516
2013-03-02 13:44:04 +00:00
80f25e3806 0003428: When running with pythonw.exe, Windows may crash if you write to stdout. Some more print statements changed to log.warning.
svn: r21512
2013-03-01 13:13:58 +00:00
40b8b02838 Narrative Web: Fix alphabetic navigation bar and sorting in index pages using PyICU where available. Implements most collate contractions for western languages Gramps has been translated into. This fixes the following bugs:
0002933: Problems in Narrative Web Report with surnames beginning with V or W. Use collation primary difference to define index groupings. Special case for 'V' and 'W' in Swedish removed because the default CLDR has a primary difference between them.

0003434: NarrativeWeb new alphabet index sorted incorrectly. Fix Cyrillic sort order, and contractions for Slovak and Czech (among other languages).

0003933: References inside pages in NarWeb report and non-ascii characters. Sorting issues for Polish characters.

0004423: Web report does not handle Czech "CH" character properly. Dz contraction is not present in the CLDR. Slovak is similar.

0005088: Narrated Web Site Report sort order different Windows vs Linux. Resolved by using PyICU (if available).

0005645: can't sort greek names

0005767: Sorting in Narrative Webb does not work correctly. Fix sorting in Individuals, Surnames, Families, Events and Places to use PyICU (if available). This bug covers sorting in the index header (as well as in the body of the index pages).

svn: r21509
2013-03-01 12:42:16 +00:00
58a2be3264 Bug #06459 : change the lock strategy and split transactions in Merge citation.
svn: r21503
2013-02-28 19:52:24 +00:00
b73e758a84 RelationshipCalculator: Promote no translation message to warning
And make it more specific.
Thanks to Tim Lyons.

svn: r21501
2013-02-28 19:36:09 +00:00
b87c663612 grampletpane: Fix typo, naked except.
Warn with the reason when Dashboard file can't be opened or parsed.

svn: r21492
2013-02-28 19:10:33 +00:00
ee7fdca6ef MacLocale: Handle AppleCollationOrder returning "root"
svn: r21491
2013-02-28 18:57:37 +00:00
1e41e76682 MacLocale: Allow $LANG to override defaults settings
For currency, calendar, and collation

svn: r21490
2013-02-28 18:57:31 +00:00
991447264a GrampsLocale: Handle errors in getting collation key from locale module
svn: r21489
2013-02-28 18:57:25 +00:00
38dcbbae58 GrampsLocale: Restore call to locale.bindtextdomain() for GtkBuilder
Apparently some Linuxes require it for GtkBuilder to find the localization files. It's not supported on Win32, though, so don't try in that case.

svn: r21488
2013-02-28 18:57:19 +00:00
ca80adeb01 GrampsLocale: Set collation, currency, and calendar to lang only on secondary locale objects.
svn: r21487
2013-02-28 18:57:13 +00:00
c0aa613e4a GrampsLocale: Use absolute address for importing grampslocale
so that it works from outside of Gramps itself, in particular gramps-addons/contrib/make.py

svn: r21486
2013-02-28 18:57:04 +00:00
4eb3e7c926 GrampsLocale: Fix get_addon_translator path
Add the locale subdirectory.
Also clean out some cruft left over from the old implementation.

svn: r21485
2013-02-28 18:56:59 +00:00
512c57cb04 6408: Restore warning message for missing GExiv2 module
svn: r21483
2013-02-28 15:04:53 +00:00
b2319f90d4 update Portuguese (Europe) translation by Frederico Muñoz
svn: r21482
2013-02-28 10:31:51 +00:00
2024c027c6 "Delete" label instead of "Remove" on Gtk button
svn: r21479
2013-02-28 10:05:30 +00:00
b78c9b358e 6385: Three minor grammar issues
svn: r21478
2013-02-28 10:03:04 +00:00
bf438cddd6 Python less 3.x uses GdkPixbuf.new_subpixbuf instead dkPixbuf.subpixbuf issue 6487
svn: r21477
2013-02-27 22:24:14 +00:00
0599914223 rename .__next__ (formerly .next) as it is "NOT an iterator"
svn: r21474
2013-02-27 18:49:56 +00:00
4e04ec09fb behave gracefully if no GExiv2 under Python3
svn: r21468
2013-02-26 20:36:52 +00:00
d3077942e1 Fix retrieval of version metadata for python3 Gramps.py -L
svn: r21464
2013-02-26 17:35:24 +00:00
41ba5c838e Fix type error in "python3 Gramps.py -L"
svn: r21461
2013-02-26 17:27:33 +00:00
5e8623cf1b 6409 and 6447 Python3 changes (possibly not done yet)
svn: r21459
2013-02-26 17:18:00 +00:00
ed8b6b9edf 0006410: Webcal report crashes and freezes alpha4. For python3 simply opening the file works.
svn: r21458
2013-02-26 17:14:54 +00:00
138bbb047b GrampsLocale: Remove all calls to locale.setlocale and locale.bindtextdomain
svn: r21451
2013-02-26 00:16:41 +00:00
ff7cef7d4e Addons: Check for two-letter lang as well as 5-char locale
E.g, check fr as well as fr_FR

svn: r21450
2013-02-26 00:16:30 +00:00
cdf619cf62 grampletpane: Replace diagnostic prints with log warnings.
And improve warning when unable to save the Dashboard layout.

svn: r21449
2013-02-26 00:16:19 +00:00
624314e8bc grampletpane: Use __future__.unicode_literals instead of cuni()
And get rid of the silly NL = "\n"

svn: r21448
2013-02-26 00:16:07 +00:00
07b52e2a11 ConfigManager: Ensure key files are loaded and saved as utf-8
svn: r21447
2013-02-26 00:15:55 +00:00
3178850a29 Python3 changes: __next__ and future division (which is not done yet)
svn: r21446
2013-02-25 18:52:45 +00:00
388ec0cbf1 slightly reformat error message
svn: r21443
2013-02-25 16:12:19 +00:00
1773d661e7 6283: test flag for python on new script, not on Gramps.py... (thank you Paul)
svn: r21438
2013-02-25 07:24:40 +00:00
6f8fc1be58 Work around lack of locale.LC_MESSAGES on some Windows pythons
svn: r21436
2013-02-24 17:38:43 +00:00
af0f98d3b7 Fix missed cuni() in save.
svn: r21435
2013-02-24 16:46:16 +00:00
14a38b91bc 6283: Re-enable optimization flag (-O) for python
svn: r21433
2013-02-24 16:16:42 +00:00
dc671cf212 6408: python3 fix
svn: r21430
2013-02-24 13:52:56 +00:00
0b30e204bf revert to the old report name
svn: r21429
2013-02-24 08:40:08 +00:00
4decf95b07 [r21424]Fix Py2 file encoding errors
svn: r21425
2013-02-24 02:20:09 +00:00
ddf9dc9f14 6408: Display GExiv2 version rather than pyexiv2 version
svn: r21388
2013-02-23 23:36:12 +00:00
7c0e4e4eb4 6408: Convert Metadata Viewer from pyexiv2 to GExiv2. Move Edit Exif Metadata gramplet into gramps-addons.
svn: r21386
2013-02-23 21:04:48 +00:00
808c3d1183 see issue 0006464
svn: r21385
2013-02-23 12:45:55 +00:00
71edc3e710 6478: allow setting a background color in the SVG backend
svn: r21383
2013-02-23 04:59:31 +00:00
c5ae536432 someone changed a lot of the
box.next
to 
box.__next__

changed these back.


svn: r21382
2013-02-22 15:56:42 +00:00
daf8669dc3 Remove dead basedocclass code
svn: r21381
2013-02-21 04:27:51 +00:00
3578392de5 ImportGedcom: Fix Python3 "dictionary changed size during iteration" errors
svn: r21377
2013-02-19 22:06:32 +00:00
e62eb831f0 Import ProGen: Use python3 print syntax
svn: r21376
2013-02-19 22:06:20 +00:00
c2a6e0e5d7 Fix Py2 TypeError in GEDCOM export
Due to writing regular strings instead of unicode strings.

svn: r21375
2013-02-19 22:06:11 +00:00
31745aaf8f basedocclass==>docclass to match the 20695 changes
svn: r21374
2013-02-19 19:19:22 +00:00
5e6fe3a996 Geography : print suppression
svn: r21372
2013-02-18 19:57:28 +00:00
670592122a Geography : bug #06451 note 27413 : the ellipse become a line when it is too small
svn: r21370
2013-02-18 19:41:35 +00:00
bf65ad1e7c Geography : bug #06466 : History change when clicking on one marker
bug #06451 : incomplete precedent patch


svn: r21368
2013-02-17 12:48:55 +00:00
6deead53fc Make availability of GraphViz settings depend on output format
svn: r21365
2013-02-16 21:36:58 +00:00
f075325399 Geography : bug #06451 : Don't see chinese characters in the geography view.
svn: r21364
2013-02-16 13:35:32 +00:00
834a14fc38 Improve the descriptions and tooltip for GraphViz aspect ratio option
svn: r21362
2013-02-15 19:44:17 +00:00
a1daf098b2 Fixed a typo.
svn: r21359
2013-02-15 08:45:31 +00:00
658134e464 6448: Text Reports>Descendant Report gives an AttributeError: 'Sort' object has no attribute by_birthdate
svn: r21357
2013-02-14 23:41:35 +00:00
5d6e2c991a [Bug 6413] Fix importing ProGen files
This isn't a perfect fix because it requires that the ProGen file is
encoded with CP437, which is guaranteed only in Version 3.21 and later.

svn: r21355
2013-02-14 18:41:43 +00:00
8abf7677d6 6247: Crash when attempting to use Book Report
svn: r21350
2013-02-13 18:43:25 +00:00
d12314ccbd Geography : bug #6442 use the good glib with introspection.
svn: r21349
2013-02-13 15:07:41 +00:00
ee56e5723a Fixed a typo.
svn: r21344
2013-02-12 15:42:45 +00:00
8ddb3711b0 Geography : replace GObject.timeout_add by glib.timeout_add as it is deprecated
svn: r21341
2013-02-12 08:33:49 +00:00
80e27a63c0 6379: Can not get ancestry or relationship tabs to work
svn: r21337
2013-02-10 21:11:57 +00:00
b816603119 win32-py3 fix: ValueError: strftime() requires year in [1; 9999]
svn: r21332
2013-02-10 18:03:55 +00:00
96e042919c win32 changes
svn: r21331
2013-02-10 17:53:43 +00:00
705355104a Revert svn21255 (svn21254 in branches/maintenance/gramps40) as discussed in issue 6424
svn: r21329
2013-02-10 15:23:06 +00:00
539fed3314 Reinstate inadvertent removal of rev 19988 change for bug 5900
svn: r21327
2013-02-09 21:12:19 +00:00
c56bd35ce0 GrampsLocale: Correct setting GrampsLocale.languages
Test only first 5 or first 2 characters of the language id against the
list of available translations.

Thanks to Tim Lyons for exposing the error.

svn: r21326
2013-02-09 18:59:20 +00:00
fcab654305 updated nl translation
svn: r21325
2013-02-09 13:03:11 +00:00
f48ca367b9 Revert change 21304 for moving report_options file
svn: r21324
2013-02-08 17:11:14 +00:00
b98ea511cc Geography : synchronize gramps and osm-gps-map for the free maps.
svn: r21321
2013-02-08 07:59:31 +00:00
6353e06fa6 Geography : sometimes crash with unknown people or family.
svn: r21320
2013-02-08 07:57:47 +00:00
f568077d1e 0006411: Navweb crashes alpha4 when creating Media pages
svn: r21315
2013-02-07 16:48:45 +00:00
1dfd067e52 use latest gtkspell if available
svn: r21309
2013-02-06 09:24:15 +00:00
280c455eba 0003968: [NarWeb] Save/Restore settings for Narrated Website Generation. Change report_options file to be in the database directory, and implement different default report file and directory names based on the Family Tree Name. N.B. On upgrading, if you want to preserve your report_options, copy the report_option.xml file from the .gramps directory to the applicable .gramps.grampsdb.<number> directory. Also don't forget that the default options are to EXCLUDE private and living data.
svn: r21306
2013-02-05 18:07:37 +00:00
1db1aefc81 Fix of gramps -v for Graphviz and ghostscript.
svn: r21301
2013-02-05 15:11:45 +00:00
2cb390881b Bug #6358. gc.DEBUG_OBJECTS removed from python3. Also handle exceptions due to collected weak references.
svn: r21298
2013-02-04 22:01:03 +00:00
1a5be24d56 Change format of console logging messages to have a meaningful timestamp
svn: r21295
2013-02-04 19:14:29 +00:00
553baa596a Fix processing of contractions, and changes to ensure code (after initial lines) for narrativeweb is the same for trunk and gramps34
svn: r21293
2013-02-04 18:23:57 +00:00
404c2f154b date.get_start_date has no attribute 'is_valid'
svn: r21292
2013-02-04 18:12:09 +00:00
e46c38bf0e Added strings for sidebar category.
svn: r21291
2013-02-04 17:53:34 +00:00
ff8a97a5d6 missing glocale
svn: r21290
2013-02-04 14:06:33 +00:00
9b7a34d9c0 6403: Limit and try to avoid markups in translatable messages
svn: r21289
2013-02-04 09:25:41 +00:00
06ce88cef4 GrampsLocale: Allow for importing older PyICU packages
svn: r21287
2013-02-04 01:42:51 +00:00
85ae2aca09 Fix memory leaks.
svn: r21285
2013-02-03 16:40:43 +00:00
b225c71885 Fixed a typo LC_MONETARY -> 'LC_MONETARY'.
svn: r21283
2013-02-03 15:30:40 +00:00
a8bbb91d25 GrampsLocale: Fix some oversights in creation of second GrampsLocale
svn: r21282
2013-02-03 02:05:14 +00:00
5f8575241b grampslocale: Pretty up the log messages.
svn: r21281
2013-02-03 02:05:06 +00:00
f8a4ad6cb1 grampslocale.py: Protect against C.UTF-8 not being an installed locale on Linux.
svn: r21280
2013-02-03 01:23:05 +00:00
d6f9af95ad relationship.py: Fix not registering "en_GB" as english.
Also replace diagnostic print with proper logging.

svn: r21279
2013-02-03 01:22:59 +00:00
964d13ab40 update path
svn: r21278
2013-02-02 09:54:32 +00:00
6d91a3fd07 Handle junk at the end of revision strings
svn: r21276
2013-02-01 22:49:22 +00:00
fd61b21a2d GrampsLocale: Replace locale.strcoll, locale.strxfrm, and conv*_tosrtkey
With GrampsLocale.sort_key (for strxfrm and conv*_tosrtkey) and
GrampsLocale.strcoll.

If ICU is available will use the correct ICU::Collator for the locale,
otherwise falls back to locale.strxfrm -- for which it temporarily
changes the LC_COLLATE locale.

svn: r21275
2013-02-01 22:49:14 +00:00
f238be30ef GrampsLocale: Introduce GrampsLocale attributes currency, calendar, and collate
svn: r21274
2013-02-01 22:48:57 +00:00
0c2263a327 GrampsLocale: Make maclocale.mac_setup_localization() set glocale attributes directly
svn: r21273
2013-02-01 22:48:51 +00:00
ad61ad70a5 GrampsLocale: Extract function __init_from_environment
svn: r21272
2013-02-01 22:48:41 +00:00
ef7ee8cb36 Add modules for ICU
svn: r21271
2013-02-01 20:25:35 +00:00
f0ed16a9eb export file select dialogue does not correctly reject empty filenames - two (probably long standing) coding errors: use of method name 'strip' instead of calling it, and does not isolate the filename from the full pathname
svn: r21268
2013-02-01 17:40:24 +00:00
e2f4e39f7e find_file and find_folder do not return null string if the file or folder resp. do not exist (coding typo)
svn: r21267
2013-02-01 17:35:37 +00:00
7afc3f7112 Update post-install scripts
svn: r21265
2013-01-31 23:23:32 +00:00
17e70f14b3 Fix bug with --install-scripts option
svn: r21263
2013-01-31 22:30:02 +00:00
7de1d4d40e Remove duplicate LOCALE_DIR
svn: r21262
2013-01-31 18:33:20 +00:00
8e1a0a7ca5 updated nl translation
svn: r21261
2013-01-31 15:33:22 +00:00
ee96c874ba 6367: Update the Side/Bottombar text (patch by Patsyblefebre)
svn: r21260
2013-01-31 08:29:39 +00:00
fa1151ef05 Narrative web: fix tar file output and HTML encoding output support.
svn: r21258
2013-01-30 18:58:44 +00:00
9755c2f794 Revert "Allow hard-coded paths to be overridden with $XDG_DATA_DIRS"
This reverts r21246

svn: r21257
2013-01-30 14:54:08 +00:00
c2164fbb37 gdkpixbuf support on windows
svn: r21255
2013-01-30 10:05:29 +00:00
57be65f556 6384: Update Danish translation by Lars Kristian Lundin
svn: r21251
2013-01-30 09:32:57 +00:00
bf9af55a3f Allow hard-coded paths to be overridden with $XDG_DATA_DIRS
Necessary for post-installation relocatability.
Also ensure that data installed to share/gramps is in mac bundle.

svn: r21246
2013-01-29 20:35:41 +00:00
9ea3e520cb typo
svn: r21243
2013-01-29 15:06:09 +00:00
853351397e 6377: Danish translation is incomplete (patch by Lars Kristian Lundin)
svn: r21242
2013-01-29 08:49:29 +00:00
ee032e67df 6377: Danish translation is incomplete
svn: r21239
2013-01-28 16:13:56 +00:00
72051dd488 GrampsLocale: Replace use of get_language_string with GrampsLocale.get_language_dict
Permits sorting by localized language name.
Also hides the language code, which the user doesn't really care about.
Removes get_language_string from libtranslate.py, no longer needed.

svn: r21236
2013-01-27 21:10:17 +00:00
091782abf7 GrampsLocale: Use module-specific logger for grampslocale.py
Fixes double-logging problem reported by Tim Lyons.

svn: r21235
2013-01-27 21:10:09 +00:00
febd8842fd behavior has changed on gramplet bars, message needs an update too
svn: r21231
2013-01-27 16:52:09 +00:00
da7ab966d1 Bug #6371. Fix memory leak caused by hanging reference to progress meter callback method.
svn: r21225
2013-01-26 09:28:52 +00:00
23c9ce10b9 6364: dead people are shown as alive in narrated web page export
svn: r21219
2013-01-25 12:53:50 +00:00
1200a57d53 6307: Use untranslated string in filter
svn: r21214
2013-01-24 16:47:14 +00:00
a8a177d396 6360: Fix to work with new model
svn: r21212
2013-01-24 16:28:13 +00:00
5f9651927e listing missing references
svn: r21210
2013-01-24 15:37:45 +00:00
3e80ed51e0 6288: crash: no attribute 'require_version' - better fix
svn: r21207
2013-01-24 08:45:00 +00:00
284ee7dce9 Bug #6255.
svn: r21201
2013-01-22 20:56:11 +00:00
4a1c769a7e [Bug #6361] try to run soundex tool
Updated for python3

svn: r21199
2013-01-22 19:21:29 +00:00
7d9cc19ed0 Fix unhandled exception in expandersidebar
svn: r21198
2013-01-22 19:21:17 +00:00
33fe531672 GrampsLocale: Fix missing "operating_system" value
Inadvertently deleted the creation in r21143

svn: r21197
2013-01-22 19:21:04 +00:00
b0f79b5bbe Error in person.get_citation_child_list. Causes error in merging citation in person event reference attribute. (Discovered during investigation of 0006336: Delayed update of bottom bar in Person View after merge)
svn: r21196
2013-01-22 19:14:57 +00:00
9c66c62d5c Add tagging to all primary objects
svn: r21194
2013-01-22 16:12:15 +00:00
1b14c1d2a1 add "Id" property
svn: r21189
2013-01-21 15:56:16 +00:00
4ae494bff9 "grampletview" is now "dashboardview"
svn: r21188
2013-01-21 15:51:59 +00:00
5ae04dfc19 some broken references have blocked python modules check
svn: r21187
2013-01-21 15:40:23 +00:00
7fb81b5c21 GrampsLocale: Fix call to member function.
svn: r21186
2013-01-21 15:14:17 +00:00
8c5d7afb5c update for testing translations handling
svn: r21184
2013-01-21 10:08:11 +00:00
5e505f2c21 GrampsLocale: Restructure so that multiple GrampsLocale objects can safely be created for different locales
Only the first dependent upon the environment
All may be created with parameters which override environment variables or OS settings.
See the GrampsLocale docstring for details.

svn: r21182
2013-01-21 01:27:29 +00:00
795b45c82f relationship.py: Remove unused import
svn: r21181
2013-01-21 01:27:21 +00:00
2f77462320 Fix platform detection on OSX
'darwin' is returned by sys.platform, not os.name.

svn: r21180
2013-01-20 19:35:35 +00:00
c4802bd210 Fix undefined variable reference, make separate not-loaded warning
Thanks to Pat Lefebre for reporting the error.

svn: r21179
2013-01-20 19:35:28 +00:00
1d002b3218 Bug #6255. Wrap gzip files with TextIOWrapper to allow them to be read as text.
svn: r21177
2013-01-20 17:16:01 +00:00
c91b53f0c4 0005088: Narrated Web Site Report sort order different Windows vs Linux. Initial commit to resolve the issues on Linux and Mac (provided in both cases PyICU is installed). Windows still needs to be tested, and there may still be some other uses of strxfrm (or strcoll) that need to be fixed.
svn: r21175
2013-01-20 15:11:06 +00:00
dc9c445878 Add goocanvas-2.0 to gramps dependencies
Also remove gramps-40 target, it doesn't belong in trunk now that it has 
its own branch.



svn: r21173
2013-01-19 21:47:44 +00:00
9e09c4233f GrampsLocale: Fix another typo
svn: r21171
2013-01-19 00:56:18 +00:00
b0e9f158d5 GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE
svn: r21170
2013-01-18 22:23:11 +00:00
d5d0523303 GrampsLocale: Fix the typo in my typo fix.
svn: r21169
2013-01-18 22:04:46 +00:00
1a43859587 GrampsLocale: get_relationship_calculator: Fix missed variable name change.
svn: r21168
2013-01-18 21:27:48 +00:00
d189448f39 Use public interface of Gtk.TreeModel in listview code
svn: r21165
2013-01-18 18:46:09 +00:00
ddff6f95d9 6353: Fix error when setting colours
svn: r21163
2013-01-18 18:24:13 +00:00
e4c0e079e7 Remove handle and tooltip columns from models
svn: r21158
2013-01-17 21:58:53 +00:00
5e914292fe Fix GeoGraphyView.__init__ arg list for simplified bookmarks
svn: r21157
2013-01-17 19:49:04 +00:00
85a082bb6d Descendant Report: Fix changed Sort function name
svn: r21156
2013-01-17 19:48:58 +00:00
d9409a8998 Use IMAGE_DIR in geography.py so that map images can be found when running from source directory.
svn: r21155
2013-01-17 19:48:51 +00:00
3f7d8933c7 Import get_svn_revision into const.py (via const.py.in, of course)
svn: r21154
2013-01-17 19:48:44 +00:00
b79eb50aba PdfDocGen: Report cause of failure on all exceptions
not just file open ones. Expat can raise exceptions too!

svn: r21153
2013-01-17 19:48:37 +00:00
42de599bd0 GrampsLocale: Fix file encoding error in recentfiles
Expat wants a binary file, not a string file.

svn: r21152
2013-01-17 19:48:32 +00:00
e920cbfac1 GrampsLocale: Get the language code from the global translation
Instead of probing locale.getlocale() and environment variables

svn: r21151
2013-01-17 19:48:24 +00:00
df46941e73 GrampsLocale: Use the codeset from the singleton translation
Instead of locale.getlocale() or locale.nl_langinfo

svn: r21150
2013-01-17 19:48:14 +00:00
807512cd05 Fix some file resource leaks
I.e., files left open when the opening function exits. This is
a PyDebug warning.

svn: r21149
2013-01-17 19:48:07 +00:00
09a875db11 GrampsLocale: Simplify the file-finding functions
Making use of the fact that GrampsLocale now knows what
encoding to use, and noting that filesystems don't use
more than one encoding to write filenames in directories.

Also specify the encoding on some more files

svn: r21148
2013-01-17 19:47:59 +00:00
cc4ec85b4d [Bug 6364] Fix file-opening failures due to unicode content.
svn: r21147
2013-01-17 19:47:44 +00:00
a58ef2b73f GrampsLocale: Replace calls to sys.getfilesystemencoding
On MSWin and OSX, this call always returns the correct
value (utf-8 on OSX, 'mbcs' on MSWin), but on Linux the
return value is bizarrely dependent upon the environment.

Replace it with a GrampsLocale function which returns 'utf-8'
(the correct value for most Linux file systems) regardless of
the environment.

Also replace its use in print and write functions: It's the
encoding of paths in the filesystem, not of the files's content,
nor of the terminal's capabilities. The former is almost
always utf-8 as long as we write the file, the latter is
given by sys.stdout.encoding. Use the 'backslashreplace' error
handler to avoid exceptions when we need to output unicode
text to an ASCII terminal.

svn: r21146
2013-01-17 19:47:36 +00:00
ef7e047b4b [Bug 6222]: Get the addons language list from the primary
GrampsLocale instance.

svn: r21145
2013-01-17 19:47:21 +00:00
ef6892abbd GrampsLocale: Remove ggettext
svn: r21144
2013-01-17 19:46:55 +00:00
d3c2a8a490 Localization: Re-implement localization as a class, GrampsLocale
GrampsLocale is effectively a singleton: An instance is created in
const.py and retrieved everywhere.

Translations are provided via Translations classes, which are derived
from GNUTranslations and NullTranslations to provide extra functions
like sgettext.

svn: r21143
2013-01-17 19:42:11 +00:00
eecf57a0f6 Rename trans.py and mactrans.py to grampslocale.py and maclocale.py
Reflecting discussion on gramps-devel about their affecting more than
just translations.

Provide for a master GrampsLocale instance to be retrieved from
const.py, set by grampsapp.

svn: r21142
2013-01-17 19:41:58 +00:00
7bb5c75d6a 6333: Display optional close button in gramplet bar tabs
svn: r21140
2013-01-16 23:59:48 +00:00
a323f92482 Tidy up bookmark code
svn: r21139
2013-01-15 22:30:18 +00:00
ae65778d27 6331: Fix spelling mistakes
svn: r21137
2013-01-15 21:04:57 +00:00
b3ceb3e828 6338: NotImplementedError on Export a View to a spreadsheet from the People Category
svn: r21136
2013-01-15 19:49:07 +00:00
aa021c36c8 Allow icons as column headings in listviews
svn: r21134
2013-01-15 18:46:18 +00:00
0b2ccdee6d Add family filter to match twins
svn: r21132
2013-01-15 18:27:43 +00:00
7672f64221 6330: Can't download ans install addons
svn: r21131
2013-01-15 10:59:13 +00:00
01dbd41081 Filter was not working, we need to query global variable when we need it, not once at start
svn: r21129
2013-01-15 10:19:38 +00:00
48f3002e95 factor out double handle2internal
svn: r21127
2013-01-15 08:49:22 +00:00
6f42885a79 updated nl translation
svn: r21125
2013-01-15 08:46:14 +00:00
926dbca98f 6329: Crazy citations after XML import of bacuo from Gramps 3.4.3
svn: r21123
2013-01-15 08:42:50 +00:00
6783e60a7a updated nl translation
svn: r21122
2013-01-15 08:40:26 +00:00
22f646ccce Don't convert handle if None
svn: r21121
2013-01-14 22:05:29 +00:00
00bd4b81f8 6326: Running Export View crashes with 'tuple' object has no attribute 'get_indices'
svn: r21120
2013-01-14 18:57:47 +00:00
ae517eb9c7 Changes for 1.6 svn
svn: r21117
2013-01-14 18:38:44 +00:00
7af413bbc4 more absolute addressing, not relative
svn: r21115
2013-01-14 18:25:54 +00:00
b20e711c30 1765: Add private column to views
svn: r21114
2013-01-14 16:49:52 +00:00
4cbdd52389 Rename Gramplet View to Dashboard View
svn: r21112
2013-01-14 11:49:51 +00:00
87e7945b65 Fix typo in GI_TYPELIB_PATH
svn: r21110
2013-01-13 21:06:41 +00:00
892143ed4b Build graphviz with pango, freetype support
Otherwise it can't output PDFs.
Also fix Gramps svn repo to new SF scheme.


svn: r21107
2013-01-13 20:35:51 +00:00
a769890c26 Include gi typelibs in bundle
Also point to pango modules file.


svn: r21106
2013-01-13 20:32:11 +00:00
094726c14f indent typo
svn: r21103
2013-01-13 17:19:29 +00:00
347d371b77 Improvement to dropdown navigation plugin
svn: r21102
2013-01-13 17:09:53 +00:00
8369658800 http://www.gramps-project.org/bugs/view.php?id=2623#c26969 make handle safe
svn: r21101
2013-01-13 17:07:44 +00:00
7fc4d4ec3f 6288: crash: no attribute 'require_version'
svn: r21100
2013-01-13 16:51:04 +00:00
192e7eccf6 Set of changes to allow merge/patch functionality: feature on db to not add sources or tags on import; all gen.lib objects' to_struct marks Handles rather than strings; Differences report (gramps-add) now shows all relevant changes
svn: r21098
2013-01-13 16:38:54 +00:00
f0d8d4bc8d Bring data.gramps up to date with version 1.5.0 of XML; fix missing citations
svn: r21097
2013-01-13 16:27:08 +00:00
9a1f3abd59 Moving to xml rather than gz for comparison purposes
svn: r21096
2013-01-13 16:25:09 +00:00
47b1b251bc 6229: bug when creating a book reports
svn: r21090
2013-01-13 01:07:19 +00:00
73b26752b0 Add two experimental navigation plugins
svn: r21088
2013-01-12 23:35:45 +00:00
f14c20f20b 6315: Inserting action group 'Bookmarks' into UI manager which already has a group with this name
svn: r21087
2013-01-12 22:20:41 +00:00
ff2774985f 6318: Mention in the README that RCS is an optional package
svn: r21085
2013-01-12 15:00:52 +00:00
ecd18dfbce 6321: installed rcs and tried to make an archive
svn: r21083
2013-01-12 14:48:49 +00:00
6c313b0a58 6306: Remove focus from the help button in detached gramplet windows
svn: r21080
2013-01-12 00:03:16 +00:00
c72a3f2492 6310: Warning dialog "No Home Person" should be helpful and more descriptive
svn: r21079
2013-01-11 22:52:27 +00:00
bb491fa5ef 6291: No Text report, with output format ODF, is created
svn: r21077
2013-01-11 22:32:41 +00:00
0cffe803a5 6312: Fix Dashboard category icon
svn: r21074
2013-01-11 22:10:27 +00:00
f40ec85d39 updated nl translation
svn: r21073
2013-01-11 20:00:05 +00:00
35add93f04 6307: Bug fixes for To Do gramplets
svn: r21071
2013-01-11 19:23:38 +00:00
620446303f fix error from fix encoding issue for python 3
svn: r21070
2013-01-11 17:20:16 +00:00
d59317881a 6307: Improved ToDo gramplets
svn: r21067
2013-01-11 16:09:23 +00:00
0ffe2869d6 fix home button issue in python3
svn: r21066
2013-01-11 15:18:11 +00:00
ce7192c034 6290: No Text report with output format PDF is created
6292: No Text report, with output format Print... , is created.


svn: r21064
2013-01-11 14:51:28 +00:00
549434612e Check for outdated const.py file
svn: r21061
2013-01-11 13:49:21 +00:00
fdc926d942 Return correct field types for media path, desc, and mime
svn: r21059
2013-01-11 13:22:07 +00:00
31d2a7e3a0 Media Description not reported, typo
svn: r21057
2013-01-11 13:18:55 +00:00
9155b2feb6 fix encoding issue for python 3
svn: r21055
2013-01-11 13:04:49 +00:00
7fd98348ee Need to log in to run reports
svn: r21053
2013-01-10 19:18:57 +00:00
cc62366d42 Gramps Version number now includes svn
svn: r21050
2013-01-10 17:42:47 +00:00
dd296535de 6312: Rename Gramplets category to Dashboard
svn: r21048
2013-01-10 10:50:25 +00:00
f8f152c1f0 6309: Wrap text in empty gramplet bar tab
svn: r21046
2013-01-09 19:52:44 +00:00
be608b715e 6311: Export assistant to export a GEDCOM fail
svn: r21045
2013-01-09 10:21:07 +00:00
96a727e825 6311: Export assistant to export a GEDCOM fails
svn: r21042
2013-01-09 10:12:12 +00:00
9979159717 Add server option to installation
svn: r21039
2013-01-08 21:54:31 +00:00
622cabe1c2 Update .gitignore
svn: r21038
2013-01-08 21:54:15 +00:00
b85845d6a8 Update MANIFEST.in
svn: r21037
2013-01-08 21:54:08 +00:00
35073e9185 Fix svn revision import
svn: r21035
2013-01-08 18:31:51 +00:00
fd227ef251 Change to absolute paths in const.py
svn: r21033
2013-01-08 17:26:44 +00:00
6bf8994fbb 6299: Calendar Gramplet does not display anything
6301: ImportError: No module named QuestionDialog


svn: r21032
2013-01-08 09:03:25 +00:00
378558de5f 4646: reports cannot be run from the command line in a non-GUI environment
svn: r21028
2013-01-08 03:02:46 +00:00
330b8388d7 Removed extra else: typo
svn: r21027
2013-01-08 02:35:35 +00:00
37c01ad307 Restore Makefiles removed by mistake
svn: r21024
2013-01-07 22:26:38 +00:00
1fe37cae6f fix error of revision 20699
svn: r21021
2013-01-07 09:17:16 +00:00
2e88ca5bb3 5972: GUI Crash (metaclass conflict) when some package (e.g. python-gnome2) installed
svn: r21019
2013-01-07 08:19:38 +00:00
186d7e0ec4 typo in args error reporting
svn: r21016
2013-01-06 21:49:30 +00:00
b1da20254a Bugs 5972 and 6132: needed to remove python-gnome2 to run, GUI Crash (metaclass conflict) when some package (e.g. python-gnome2) installed, 6132: metaclass conflict in flatbasemodel.py
svn: r21015
2013-01-06 21:43:28 +00:00
d5b71cc6b7 display error messages correctly
svn: r21013
2013-01-06 21:39:42 +00:00
83fdd19efe 6256: Can't create graph reports
svn: r21012
2013-01-06 21:35:45 +00:00
f14b5d8944 Fix up mactrans.py for python3
svn: r21010
2013-01-06 20:40:46 +00:00
e07ec97571 Update Mac modules for python3
svn: r21009
2013-01-06 19:11:38 +00:00
98958cb164 6067: Narrative Web reports people as Living even when they have a deceased event (but without a date because it is unknown)
svn: r21008
2013-01-06 02:31:28 +00:00
9b1ab12514 Don't show svnversion non-version response
svn: r21007
2013-01-06 01:20:27 +00:00
d5870ff1f4 new location for tips.xml
svn: r21005
2013-01-05 14:41:54 +00:00
2380586eff 06256: Can't create graph reports
svn: r21002
2013-01-05 13:33:17 +00:00
cce7313605 6276: Fix error installing gramps.png
svn: r20999
2013-01-05 12:10:48 +00:00
565638fed8 6282: Can't create text reports with RTF output format in python 3.3
svn: r20997
2013-01-05 12:08:07 +00:00
a7a82a6947 6256: Can't create graph reports
svn: r20996
2013-01-05 11:34:48 +00:00
e84ccb92db 6277: Out of index when creating textreort with PDF format
svn: r20994
2013-01-05 11:19:14 +00:00
c194bda8ce Handle version with text such as '-alpha' number in const.py
svn: r20992
2013-01-05 02:58:18 +00:00
ae31189b32 Move images and data directories
svn: r20989
2013-01-04 23:09:12 +00:00
30173f5910 revert accidental 20685 regression (iteritems)
svn: r20987
2013-01-04 22:57:40 +00:00
57dc4c0118 Convert filenames to lower case
svn: r20985
2013-01-04 22:29:44 +00:00
12496556f0 Remove make files from svn:ignore properties
svn: r20982
2013-01-04 21:05:39 +00:00
f549a582e9 updated nl translation
svn: r20981
2013-01-04 20:19:32 +00:00
79576762c4 Remove remaining make files
svn: r20978
2013-01-04 17:36:50 +00:00
28a51a72d5 6281: Rename GrampsBar to GrampletBar and move into widgets directory
svn: r20977
2013-01-04 17:16:28 +00:00
71e5bb4c81 Fix of divison issue. There might be more of them.
svn: r20975
2013-01-04 15:38:44 +00:00
b380a6b04f 6273: Detaching Gramplet in Sidebar/Bottombar views are not using full area
svn: r20974
2013-01-04 14:08:36 +00:00
b115da9699 6270: Attempting to accidentally open Book Manager raises a Unhandled exception
svn: r20972
2013-01-04 13:28:35 +00:00
812b3503bf Fix of issue 6271.
svn: r20969
2013-01-03 19:20:07 +00:00
042732687f we are in 2013
svn: r20967
2013-01-03 18:51:39 +00:00
10d5436eba support for upgrade of database on python3
svn: r20961
2013-01-03 15:34:04 +00:00
e0253d125f note model with wrong tag handle, gracefully continue
svn: r20959
2013-01-03 15:09:39 +00:00
6ab5a23503 FIX MAJOR ERROR blocking upgrade of old family trees !
svn: r20957
2013-01-03 11:26:23 +00:00
4bf5b00fd7 Fix exec problem in python 2 after previous change
svn: r20955
2013-01-03 11:19:16 +00:00
b2e5f1ea0d Recover gracefully from some errors in python3
svn: r20951
2013-01-03 10:29:04 +00:00
cc878faf8f 6258: Error during start of Gramps for certain LANG values
svn: r20949
2013-01-03 09:50:43 +00:00
d6214118e2 6274: Tried to use Charts View and receive 'NameError: global name 'gen' is not defined'
svn: r20946
2013-01-03 05:41:01 +00:00
945a491e18 Tidy up resource files
svn: r20944
2013-01-02 23:31:07 +00:00
55248663b8 URL for Welcome Gramplet was still pointing to 3.3 manual (trunk will point to 4.0 for now)
svn: r20943
2013-01-02 20:27:21 +00:00
c5889d7857 Wait for report to exist before trying to download
svn: r20938
2013-01-02 03:20:41 +00:00
7242f9d662 4719: Narweb Privacy issue, probably_alive uses spouse birth/death directly
svn: r20935
2013-01-02 03:01:42 +00:00
edc74447d1 Bug 6268: Fix check_po for python3
svn: r20933
2013-01-01 23:13:45 +00:00
c8708ae3bc New URL for gramps-addons
svn: r20932
2013-01-01 20:14:20 +00:00
0d49ad046f updated nl translation
svn: r20930
2013-01-01 20:07:54 +00:00
6ddfed1244 6266: loading plugin manager gives error
svn: r20927
2013-01-01 16:29:02 +00:00
268b3e467b 6265: can not make back up
svn: r20924
2013-01-01 11:16:03 +00:00
0523ef0197 6203: typo when interrupting a gramplet
svn: r20921
2013-01-01 07:16:31 +00:00
91173ba2a8 Bumped trunk to 4.1, updated plugins, requires setup.py build rather than copy of const.py.in, show svn number in version number
svn: r20919
2012-12-31 22:51:11 +00:00
a54c1badb7 Two different types of selection data
svn: r20917
2012-12-31 20:54:48 +00:00
8f95806107 Fixed issue with adding tags on notes and families in CSV
svn: r20916
2012-12-31 20:24:10 +00:00
b82496eada Beginning of example in CSV format
svn: r20915
2012-12-31 20:08:43 +00:00
771ae761e2 Added tagging on import for GEDCOM, XML, and CSV. Also fixed CSV iterator issue with next. Default tag is set in Preferences using time.strftime codes (eg, %Y, %m, etc). Noticed that adding source on input is only for GEDCOM, so adjusted the text description for it. Tagging on input supports all taggable items (notes, media, family, person --- although csv does not import media). Will add to gramps40 if all ok.
svn: r20914
2012-12-31 20:07:36 +00:00
1c240f9bef Changes for gtk3 clipboard to work
svn: r20912
2012-12-31 18:56:31 +00:00
a86b39d078 Improve check to prevent overwriting const.py
svn: r20910
2012-12-31 16:41:00 +00:00
b2b4b39d03 6258: Error during start of Gramps for certain LANG values
svn: r20909
2012-12-31 15:00:47 +00:00
dc18499c7e Add timestamp to downloads
svn: r20906
2012-12-31 14:58:09 +00:00
62e56c09ac 6112: use get_indices method on TreePath for "old" Gtk version (e.g, 3.6.1)
svn: r20904
2012-12-31 13:41:55 +00:00
a2b941140c 6205: Gtk.CALENDAR needs a migration to new GI/GTK3 API
svn: r20897
2012-12-30 23:21:17 +00:00
6841776261 Added addons-url to config and Preferences; currently set to old URL, but will update in a couple of days when new addons URL comes on-line
svn: r20894
2012-12-30 21:59:00 +00:00
34c7d6baee Fix divisionbyzero in python3
svn: r20889
2012-12-30 17:32:52 +00:00
97fbe91426 6205: Gtk.CALENDAR needs a migration to new GI/GTK3 API
Also: don't expand the calendar more than needed to show it.


svn: r20886
2012-12-30 15:42:06 +00:00
b08cdbe36c avoid specific case with decimal comparison
svn: r20883
2012-12-30 15:29:23 +00:00
59d54b9ba5 More version strings
svn: r20881
2012-12-30 15:14:58 +00:00
6a78da4b25 typo
svn: r20878
2012-12-30 10:04:18 +00:00
43b6e62d2d Update translation code to use LOCALE_DIR
svn: r20876
2012-12-29 17:52:17 +00:00
1096342cb5 Set the correct number of update callbacks. Bug #6219.
svn: r20874
2012-12-29 17:18:54 +00:00
7bff2f915f Fix structure of build directory for locale files
svn: r20872
2012-12-29 00:25:01 +00:00
ffbac653e0 6112: Cannot install addons via dialog
svn: r20870
2012-12-28 20:33:30 +00:00
9cfc5f4863 Fix error in Norwegian (nb) translation
svn: r20867
2012-12-28 19:59:21 +00:00
f055e2748e Add LOCALE_DIR. Remove PREFIXDIR and SYSCONFDIR.
svn: r20866
2012-12-28 19:59:07 +00:00
af456e12b7 6208: Cannot iterate on attributes when trying to paginate via cairodoc
At same time, fix deprecated cairocontext


svn: r20864
2012-12-28 17:22:10 +00:00
91abba9d20 6123: Index into undohistory, correct fail on older gobject
svn: r20860
2012-12-28 13:01:49 +00:00
5fb66f3918 Improve hover handling on displaytabs
svn: r20857
2012-12-28 10:27:12 +00:00
d64e11dc1d spacing, tab (fr) and paths for files (en, fr)
svn: r20856
2012-12-28 09:44:04 +00:00
c0e7bb1cdc Restore PangoCairo and FontConfig to Graphviz requirements
svn: r20854
2012-12-27 20:49:19 +00:00
a4239f83d3 correct wrong function call
svn: r20852
2012-12-27 17:51:20 +00:00
51a53ccebd Fix crash on callback after clean_up in gallerytab
svn: r20849
2012-12-26 23:19:07 +00:00
2e86a12c39 bug 1772: follow cursor to completely resolve bug
svn: r20847
2012-12-26 22:39:58 +00:00
28c25286ad bug 1772, correct event handling
svn: r20845
2012-12-26 22:22:21 +00:00
e434d618a1 1. context menu on displaytabs showing
2. partially do bug 1772O


svn: r20843
2012-12-26 22:15:41 +00:00
57dccb292b 1567: beautify Relation Ship Graph, remove - if no date of birth or death
svn: r20841
2012-12-26 18:19:51 +00:00
8a8bf7c72e GTK3 conversion in tools
svn: r20839
2012-12-24 12:35:53 +00:00
44e33f0ad6 rows_reoredered patch not yet in GTK
svn: r20834
2012-12-23 14:09:57 +00:00
2787429b8a small translation and uptades
svn: r20831
2012-12-23 13:34:53 +00:00
08010776aa Mods for Gtk3, setup.py
svn: r20829
2012-12-23 06:11:43 +00:00
29a170b678 spacing, tab (fr) and VERSION (en, fr)
svn: r20826
2012-12-22 19:49:57 +00:00
424fe3bd5b merge from 4.0.0 to trunk
svn: r20824
2012-12-22 18:07:18 +00:00
261df75bea Convert validated masked entry to normal gtk.entry with icon
Working background color change on error


svn: r20822
2012-12-22 13:24:39 +00:00
66cdba1d8d rows_reordered is present again in GTK 3.8
svn: r20819
2012-12-22 09:23:56 +00:00
8fa4de8f9a Someone optimized some code incorrectly; lines at bottom of calendar where placed off the page
svn: r20815
2012-12-21 18:57:18 +00:00
163545089c If you try to lookup an object too early, you might find that the tbl is still a dict; this protects such early lookups from crashing
svn: r20813
2012-12-21 18:25:37 +00:00
99a1729794 do not need to check untranslated and fuzzy strings because they have not been reviewed yet; warning this script uses tab for the bloc indentation...
svn: r20805
2012-12-20 17:42:29 +00:00
1d9aeb81d0 On translation error, allow build to continue after asking user
svn: r20803
2012-12-20 16:40:49 +00:00
d0d2c59cd5 common date handler for Norwegian Bokmål and Norwegian Nynorsk
svn: r20800
2012-12-20 13:46:36 +00:00
1317 changed files with 227674 additions and 214847 deletions

6
.gitignore vendored
View File

@ -2,11 +2,11 @@
*.py[cod]
# Distutils
MANIFEST
build/
sdist/
dist/
# Gramps
gramps/data/tips.xml
gramps/gen/const.py
data/tips.xml
gramps/plugins/lib/holidays.xml
po/.intltool-merge-cache

View File

@ -1,3 +1,4 @@
#! /usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
@ -26,5 +27,7 @@ able to run gramps from the source directory without setting PYTHONPATH
From this position, import gramps works great
"""
import os
os.environ['GRAMPS_RESOURCES'] = os.path.dirname(os.path.abspath(__file__))
import gramps.grampsapp as app
app.main()

View File

@ -15,11 +15,12 @@ version by deleting the installed directories (for example,
/usr/lib/pythonx.x/site-packages/gramps
/usr/lib/pythonx.x/dist-packages/gramps
where pythonx.x is python2.7 or whatever version you installed gramps with.
Also remove the gramps .egg files that are installed along the gramps directory.
Also remove the gramps .egg files that are installed along with the gramps
directory.
If you don't know the list of all files that Gramps installed, you can reinstall
it with the --record option, and take a look at the list this produces (so
python setup.py install --record grampsfiles.txt
If you don't know the list of all files that Gramps installed, you can
reinstall it with the --record option, and take a look at the list this
produces (so python setup.py install --record grampsfiles.txt
GRAMPS is a python application, so loading happens on reading the
files, meaning that files of a previous version that are no longer

View File

@ -11,34 +11,21 @@ include TestPlan.txt
recursive-include data *
recursive-include debian *
recursive-include docs *
recursive-include gramps *
recursive-include help *
recursive-include images *
recursive-include mac *
recursive-include po *
recursive-include gramps *
recursive-include test *
recursive-include windows *
# Remove files created in the build
exclude data/gramps.desktop
exclude data/gramps.keys
exclude data/gramps.xml
recursive-exclude data/man *.1
recursive-exclude data/man *.1.gz
exclude gramps/const.py
exclude gramps/data/tips.xml
exclude data/tips.xml
exclude gramps/plugins/lib/holidays.xml
exclude po/*.gmo
exclude po/.intltool-merge-cache
exclude po/stamp-it
exclude po/POTFILES
global-exclude *.pyc
global-exclude *.py~
global-exclude *.pyo
global-exclude *.bak
# Remove directories which should not be included in the distribution
prune gramps/guiQML
prune gramps/webapp
# Remove Makefiles used by autotools
global-exclude Makefile*
#prune gramps/webapp

67
NEWS
View File

@ -1,3 +1,70 @@
2013-05-15
Version 3.4.4 of Gramps! "The Ministry of Silly Names", a maintenance release.
* infinite recursion bug in narrative web generation
* protection on family trees when using version 3.4 and 4.0 on the same PC (road to 4.0)
* merging notes of media with citations now works
* crash during Calculate Preview of a filtered XML export
* fix annoying errors on navigation related to citations gramplet and tag object.
* listing the Family Trees can corrupt them.
* various fix around handling Gedcom file format
* fix citations and sources import on ProGen format
* better date handling and better alternate translation support on some textual reports according to locale under windows
* avoid Errors when setting wrong value as markup for invalid dates (Preferences)
* fix paragraph layout on PDF format or print output
* New: New-Zealand holidays
* Polish and backport code on XML import (road to 4.0)
* Regular expression rules now use search rather than match, fix design issues on regex filter rules
* Disable/Enable indent spouse on descendants tree
* fix regular expressions on Place filter rule
* consistency on cli arguments (road to 4.0)
* fix call of non-existant process on references proxy, enhanced tests on proxy filter
* fix NarWeb creation via cli for some non-english locales
* Various updated translations: ca, de, fr, it, nl, pt_BR, ru, sv, uk
2013-03-19
Version 3.4.3 of Gramps! "Whenever life gets you down, Mrs. Brown", a maintenance release.
* Sorting (both in the main display window, and particularly in Narrative Web output) now uses PyICU (if that module is available). Inclusion of PyICU is 'strongly recommended'. This resolves a number of bugs particularly related to sorting of non-Latin characters, and sorting on MS Windows and Mac OS X. Some changes have been made in Narrative Web to support contractions for alphabetic indices.
* The automatic Addon checking and download now works once again (the location used in Gramps 3.4.2 and before had been changed, so the the automatic process was no longer working).
* Import from Pro-Gen has been updated (at last) to take account of the change to Citations (in 3.4.0)
* Import and Export of address fields in GEDCOM has been improved so that the round-trip works properly.
* GEDCOM Repositories not imported correctly from FTM for Windows and Heredis.
* Fixes to a number of errors in filtering notes.
* Fix some errors in determining whether someone is alive (e.g. for filtering out alive people).
* Make availability of GraphViz settings depend on output format
* Improve the descriptions and tooltip for GraphViz aspect ratio option
* Fixed update problems with citation bottombar gramplet (bug #6336)
* Fixed Open Document Text output in Book report (bug #6457)
* A number of changes to Narrative Web:
** Media objects attached to Marriage events and Sources are not included in Narrative Web Site
** restructure the families index so families are indexed under both spouses, and the family name is normalised
** separate out Families section in individual and families pages so individual page links to the family page and family page links to both people
** normalise links to families so the link is only displayed if the family page is present, and the gid is included when appropriate
** remove highlighting of media subregions except in the media pages (it was confusing and not very well implemented)
** include people whose surname is absent in the individual, surname and families indexes
** html_escape names and surnames
** always display media thumbnails for first image in Gallery list (in some cases they were suppressed if they had been displayed at the top of the page)
** change partner and parent columns in families index to improve the layout of the HTML and put the comma between multiple partners in the right place
** use event description (where present) instead of just event type in back references
** fix bug in the way obj_dict and bkref_dict were initialised
** fix missing document.png for missing media
** fixed problems that bibliography ignores media attached to citations, so if that is the only 'interesting' thing about the citation, the citation media is not output
** Replaced person link routine with one that takes into account whether there is a page for the person.
** Included repository reference media type and call number in the 'Repositories' section of the relevant source instead of the Repository page.
** Implemented a generalised back reference function to display the 'References' section of all pages. This recursively displays references till one is found for which a page exists.
** Removed list of people and families from heading of the event pages as these are now in the 'References' section.
** Fixed bug "0005968: Narrated Web Site not copying Source Citations files such as jpg or pdf docs to web site
** Fixed bug "0005946 GRAMPS failed to insert jpeg image into proper place for an event" by displaying a thumbnail for citation media in the 'Source References' section (with a link to the media page)
** Tidy up media pages - remove unused parameters, use list of media items generated in first pass. Should fix bugs 2365, 5905 and 6009.
** Tidy up sources pages - fix numbering of repositories, remove unused parameters, fix title of individual source pages
** Bug: reset NarrWeb navigation menu layout when style sheet doesn't support it
** Change Source Pages to use the list of sources generated by the first pass that finds objects to be output, and simplify references section on the Source page to use the references passed to it.
** Fix option to suppress Gramps ID (bug #6237)
* a number of technical changes to Narrative Web
** Removed a lot of redundant code and parameters (mainly connected with the old way of determining the objects to be included in the report).
** Movement of some large chunks of code within the source file and some initial work towards GEPS 022: Narrative Website Refactor. Functionality should be unchanged.
** Moved routines for calculating objects to be output so they can be part of default list building classes.
* Various updated translations: da, de, es, fr, it, nb, nl, pt_BR, pt_PT, sv, uk
2012-10-28
Version 3.4.2 -- the "We're all individuals!" bug fix release.
* Some fixes on NarrativeWeb report

73
README
View File

@ -1,49 +1,87 @@
$Id$
Please read the COPYING file first.
If building from source, also read the INSTALL file (at least through the
"SUPER-SHORT VERSION") before going further.
Requirements
--------------------------------
The following packages *MUST* be installed in order for Gramps to work:
Python 2.7 or greater, Python 3.2 or greater (python version cannot be mixed)
Python 2.7 or greater, Python 3.2 or greater (or both python versions)
GTK 3.0 or greater
pygobject 3.3.2 or greater
cairo, pango, pangocairo with introspection bindings (the gi packages)
librsvg2 (svg icon view)
xdg-utils
bsddb3 is required for Python 3.2 (not python 2.7)
The following package is needed for full translation of the interface
to your language:
language-pack-gnome-xx
Translation of GTK elements to your language, with
xx your language code eg for Dutch you need
Translation of GTK elements to your language, with
xx your language code; e.g. for Dutch you need
language-pack-gnome-nl. The translation of the
Gramps strings is included with the source code.
Gramps strings is included with the gramps source.
The following packages are *STRONGLY RECOMMENDED* to be installed:
osmgpsmap Used to show maps in the geography view.
It may be osmgpsmap, osm-gps-map, or python-osmgpsmap,
but the Python bindings for this must also be present.
Without this the GeoView will not be active, see
http://gramps-project.org/wiki/index.php?title=Gramps_3.3_Wiki_Manual_-_Main_Window#Geography_Category
The package is named osmgpsmap, osm-gps-map
or python-osmgpsmap. Or obtain it from: http://nzjrs.github.com/osm-gps-map/
http://gramps-project.org/wiki/index.php?title=Gramps_4.0_Wiki_Manual_-_Main_Window#Geography_Category
!! PACKAGERS: unfortunately, at the moment (March 2013),
the patches which gramps 4.0 needs osm-gps-map to have
are not yet released (as a new osm-gps-map version). The
osm-gps-map sources must be dated 6 February 2013 (or
later) to have the necessary patches. You may obtain
it from: http://nzjrs.github.com/osm-gps-map/ or else
http://sourceforge.net/projects/gramps/files/Dependencies
(The necessary version seems to be 0.8 -- or later.)
GraphViz Enable creation of graphs using GraphViz engine.
Without this no beautiful graphs can be created.
Without this, three reports cannot be run.
Obtain it from: http://www.graphviz.org
pyexiv2 Enables Gramps to manage Exif metadata embedded in your
media. Gramps needs version 0.1.3 or greater.
Obtain it from: http://tilloy.net/dev/pyexiv2/download.html
PyICU Improves localised sorting in Gramps. In particular, this
applies to sorting in the various views and in the
Narrative Web output. It is particularly helpful for
non-Latin characters, for non-English locales and on MS
Windows and Mac OS X platforms. If it is not available,
sorting is done through built-in libraries. PyICU is
fairly widely available through the package managers of
distributions. See http://pyicu.osafoundation.org/
(These are Python bindings for the ICU package.)
The following packages are optional
gtkspell Enable spell checking in the notes. Gtkspell depends on
enchant. A version of gtkspell with gobject introspection
is needed, so minimally version 3.0.0
rcs The GNU Revision Control System (RCS) can be used to manage
multiple revisions of your family trees. See info at
http://www.gramps-project.org/wiki/index.php?title=Gramps_4.0_Wiki_Manual_-_Manage_Family_Trees#Archiving_a_Family_Tree
Only rcs is needed, NO python bindings are required
PIL Python Image Library is needed to crop
images and also to convert non-JPG images to
JPG so as to include them in LaTeX output.
(For Python3 a different source may be needed.)
GExiv2 Enables Gramps to manage Exif metadata embedded in your
media. Gramps needs version 0.5 or greater.
See http://www.gramps-project.org/wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_Conversion#GExiv2_for_Image_metadata
ttf-freefont More font support in the reports
gir-webkit GObject introspection data of WebKit is required for the
hidden view 'Htmlview', which allows websites to be opened in
Gramps. Users can unhide the view in the plugin manager.
A html renderer must be installed to use the view.
hidden view 'Htmlview', which allows websites to be
opened in Gramps. Users can unhide the view in the
plugin manager. A html renderer must be installed to
use the view.
!! PACKAGERS, Test if on your distribution
webkit and Gramps is stable. If you obtain crashes, patch
src/plugins/view/htmlrenderer.py and
@ -51,10 +89,10 @@ The following packages are optional
from gi.repository import WebKit as webkit
goocanvas2:
Required for the Graphview plugin
Required for the (user-downloadable) Graphview plugin
No longer needed in 4.0:
pygoocanvas, pygtk
pygoocanvas, pygtk, pyexiv2
No longer needed in 3.3:
python-enchant Enchant
No longer needed in 3.2:
@ -62,9 +100,6 @@ No longer needed in 3.2:
No longer needed in 3.1:
yelp Gnome help browser. At the moment no help is shipped
Remark: There is a conflict when using python-gnome2 in Ubuntu. This is evident
with the error: TypeError: Error when calling the metaclass bases
metaclass conflict
Documentation
---------------------------------

View File

@ -1,11 +1,14 @@
"UNSTABLE Gramps 4.0.0 Alpha2 release.
$Id$
This is a technology preview to allow plugin writers and packagers-installer
writers to update their plugins and scripts. This release is not production
ready, so use for testing!"
UNSTABLE Gramps 4.0.0 Beta2 release.
It is recommended to use Gramps 4.0.0 with python 3.2 so as to be ready
for the future (python 2.7 works though).
This is a technology preview to allow distribution packagers (and plugin
writers) to update their scripts (and plugins). This release is not
production ready, so only use it for testing!
It is recommended that Gramps 4.0.0 be used with python 2.7 since many
dependent packages do not yet have python 3 versions. A determined person
can probably download their sources and build them, however.
The dependencies for Gramps 4.0.0 are _completely_ different than 3.4 due
to the switch to GObject introspection, and the removal of autotools. So

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

18
data/evidencestyle/README Normal file
View File

@ -0,0 +1,18 @@
* Original evidence_style templates are provided in the public domain courtesy of
John H. Yates (see more info on http://jytangledweb.org/genealogy/evidencestyle )
* Several fixes done in the csv file which I believe were errors
* Run
$ python evidencefield.py
to generate two files with python code usable in srcattrtype.py in Gramps.
* If in the future one wants to insert _NEW_ evidence styles, add them at the
bottom of the csv file, generate the data, and copy to srcattrtype.py
* CAREFUL: When adding or changing things, DON'T change the type of already
released versions in Gramps! That means the integer indexes used must remain
the same! If only styles are added at the bottom and no lines removed,
this should not be a problem.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,469 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2013 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
This module parses the evidence csv file and generates the code we need in
Gramps to use the evidence style.
"""
#-------------------------------------------------------------------------
#
# Standard Python modules
#
#-------------------------------------------------------------------------
import csv
#-------------------------------------------------------------------------
#
# Code
#
#-------------------------------------------------------------------------
csvfilename = "evidence_style.csv"
NRCOL = 0
CATCOL = 1
CATTYPECOL = 2
TYPECOL = 3
DESCRCOL= 4
CITETYPECOL = 5
IDENTCOL = 6
LDELCOL = 7 # left delimiter
FIELDCOL = 8
LABELCOL = 9
RDELCOL = 10 # right delimiter
GEDCOMCOL = 11
SHORTERCOL = 12
STYLECOL = 13
PRIVACYCOL = 14
OPTCOL = 15
HINTCOL = 16
TOOLTIPCOL = 17
CITE_TYPES = {'F': 'REF_TYPE_F', 'L': 'REF_TYPE_L', 'S': 'REF_TYPE_S'}
GEDCOMFIELDS = {'A': 'GED_AUTHOR', 'T': 'GED_TITLE',
'P': 'GED_PUBINF', 'D': 'GED_DATE'}
SHORTERALG = {'LOC': 'SHORTERALG_LOC', 'YEAR': 'SHORTERALG_YEAR',
'ETAL': 'SHORTERALG_ETAL', 'REV.': 'SHORTERALG_REVERT_TO_DOT'}
STYLES = {'Quoted': 'STYLE_QUOTE', 'Italics': 'STYLE_EMPH',
'QuotedCont': 'STYLE_QUOTECONT', 'Bold': 'STYLE_BOLD'}
#already defined srcattrtypes
KNOWN_FIELDS = ['EVEN_REC', 'EVEN_CITED', 'EVEN_ROLE', 'GEN_BY', 'REPOSITORY',
'REPOSITORY_ADDRESS', 'REPOSITORY_SHORT_VERSION', 'REPOSITORY_CALL_NUMBER',
'DATE']
DEFAULT_HINTS = {
"ACT": "Public Law 12-98",
"ADDRESS": "Broadway Avenue, New York",
"AFFILIATION": "Agent of Gramps Software",
"AUTHOR": "Doe, D.P. & Cameron, E.",
"AUTHOR_LOCATION": "Chicago",
"BOOK": "The big example Gramps manual",
"CASE": "B. Malengier versus N. Hall",
"CEMETERY": "Greenwich Cemetery Office",
"CHAPTER": "The first office of T. Rooseveld",
"CHAPTER_PAGES": "24-55",
"COLLECTION": "Bruges Lace Collection",
"COLUMN": "col. 3",
"COMPILER": "T. Da Silva",
"CREATION_DATE": "13 Aug 1965",
"CREATOR": "P. Picasso",
"CREDIT_LINE": "Based on unnamed document lost in fire",
"DATE": "17 Sep 1745",
"DATE_ACCESSED": "18 Jun 2013",
"DATE_RANGE": "2003-6",
"DESCRIPTION": "The lace has inscriptions with names of nobility",
"DISTRICT": "Enumeration district (ED) 14",
"DIVISION": "Peterburg Post Office, or Portland, ward 4",
"EDITION": "Second Edition",
"EDITOR": "Hoover, J.E.",
"FILE": "Membership application J. Rapinat",
"FILE_DATE": "15 Jan 1870",
"FILE_LOCATION": "Accession 7, Box 3",
"FILE_NO": "1243-EB-98",
"FILE_UNIT": "Letters to George Washington",
"FILM_ID": "T345",
"FILM_PUBLICATION_PLACE": "Kansas City",
"FILM_PUBLISHER": "NY Genealogy Association",
"FILM_TYPE": "FHL microfilm",
"FORMAT": "Digital Images, or Database, or Cards, ...",
"FRAME": "frames 387-432",
"GROUP": "Miami Patent Office",
"HOUSEHOLD": "dwelling 345, family 654",
"ID": "I50-68, or 1910 U.S. census, or ...",
"INSTITUTION": "Sorbonne University",
"INTERVIEWER": "Materley, B.",
"ISSUE_DATE": "Jun 2004",
"ISSUE_RANGE": "145-394, scattered issues",
"ITEM_OF_INTEREST": "entry for G. Galileo, or Doe Household, or A. Einstein Grave ...",
"JURISDICTION": "Jackson County, Alabama",
"LOCATION": "Istanbul",
"NUMBER": "2, or Record Group 34, or ...",
"NUMBER_6TOTAL9": "5",
"ORIGINAL_REPOSITORY": "National Archives",
"ORIGINAL_REPOSITORY_LOCATION": "Washington, D.C.",
"ORIGINAL_YEAR": "1966",
"PAGE": "5; or 4,6-8, ...",
"PAGE_RANGE": "1-13",
"PART": "Part 3",
"PLACE_CREATED": "London",
"POSITION": "written in the left margin, or second row, 3th line",
"POSTING_DATE": "5 Jul 1799",
"PROFESSIONAL_CREDENTIALS": "Prof.; or Dr. ...",
"PROVENANCE": "add provenance of the material",
"PUBLICATION_FORMAT": "CD-ROM or eprint or ...",
"PUBLICATION_PLACE": "Berlin",
"PUBLICATION_TITLE": "Title of Blog, Newsletter, DVD, ...",
"PUBLICATION_YEAR": "2014",
"PUBLISHER": "Springer",
"PUB_INFO": "Springer, Berlin, 2014",
"RECIPIENT": "J. Ralls",
"RELATIONSHIP": "Paul's uncle and brother of Erik",
"REPORT_DATE": "3 May 1999",
"RESEARCH_COMMENT": "Descriptive detail or provenance or research analysis conclusion, ...",
"RESEARCH_PROJECT": "Tahiti Natives",
"ROLL": "176, or rolls 145-160",
"SCHEDULE": "population schedule or slave schedule or ...",
"SECTION": "1890 section or ER patients or ...",
"SERIES": "Carnival County Records",
"SERIES_NO": "series 34-38",
"SESSION": "2nd session",
"SHEET_NO": "sheet 13-C",
"SUBJECT": "D. Copernicus and close family",
"SUBSERIES": "",
"SUBTITLE": "Subtitle of article or magazine ...",
"TERM": "June Term 1934 or 13th Congress or Reagan Office or ...",
"TIMESTAMP": "min. 34-36",
"TITLE": "Diary Title, Message Title, Bible Name, Article Title, ...",
"TRANSLATION": "A translated version, typically of the title",
"TYPE": "Letter",
"URL_6DIGITAL_LOCATION9": "http://gramps-project.org/blog",
"VOLUME": "4",
"VOLUME_INFO": "5 volumes",
"WEBSITE": "gramps-project.org",
"WEBSITE_CREATOR_OR_OWNER": "Family Historians Inc",
"YEAR": "1888",
"YEAR_ACCESSED": "2013",
}
DEFAULT_TOOLTIPS = {
"ACT": "A statute or law name passed by a legislature",
"ADDRESS": "Store address information. Set Private if needed! Give"
" information from lowest to highest level separated by comma's",
"AFFILIATION": "A relevant affiliation that might influence data in the source",
"AUTHOR": "Give names in following form: 'FirstAuthorSurname, Given Names & SecondAuthorSurname, Given Names'."
" Like this Gramps can parse the name and shorten as needed.",
"AUTHOR_LOCATION": "City where author resides or wrote.",
"BOOK": "Title of the Book",
"CASE": "Dispute between opposing parties in a court of law.",
"CEMETERY": "Name of cemetery or cemetery office with sources.",
"CHAPTER": "",
"CHAPTER_PAGES": "The pages in the chapter.",
"COLLECTION": "",
"COLUMN": "",
"COMPILER": "The name of the person who compiled the source.",
"CREATION_DATE": "",
"CREATOR": "The name of the creator of the artifact.",
"CREDIT_LINE": "Acknowledgement of writers and contributors",
"DATE": "",
"DATE_ACCESSED": "",
"DATE_RANGE": "The range of years which are present in the source.",
"DESCRIPTION": "Some important detail of the source.",
"DISTRICT": "District as handled by Census",
"DIVISION": "The subdivision of a larger group that is handled in the source.",
"EDITION": "",
"EDITOR": "The Editor of a multi-author book.",
"FILE": "The title of a specific file in a source.",
"FILE_DATE": "Date of submitting the document to a clerk or court.",
"FILE_LOCATION": "Accession method to the file",
"FILE_NO": "Number to indicate a file",
"FILE_UNIT": "A grouping unit for a number of files in a source.",
"FILM_ID": "ID of a Microfilm.",
"FILM_PUBLICATION_PLACE": "",
"FILM_PUBLISHER": "",
"FILM_TYPE": "The type of the microfilm.",
"FORMAT": "The format of the source.",
"FRAME": "What frames in the source are relevant.",
"GROUP": "A larger grouping to which the source belongs.",
"HOUSEHOLD": "Household of interest on a census.",
"ID": "ID to identify the source or citation part",
"INSTITUTION": "Institution that issued the source.",
"INTERVIEWER": "",
"ISSUE_DATE": "Date the source was issued.",
"ISSUE_RANGE": "A range of magazine, journal, ... issues covered in the source",
"ITEM_OF_INTEREST": "Specific part, item, or person of interest in the source",
"JURISDICTION": "Area with a set of laws under the control of a system of courts or government entity."
" Enter this from lowest to highest relevant jurisdiction, separated by comma's.",
"LOCATION": "City that is relevant.",
"NUMBER": "A number.",
"NUMBER_6TOTAL9": "The maximum of entities available.",
"ORIGINAL_REPOSITORY": "Name of the repository where the original is stored.",
"ORIGINAL_REPOSITORY_LOCATION": "Address or only city of the repository where the original is stored.",
"ORIGINAL_YEAR": "Year the original source was published/created",
"PAGE": "The page or page(s) relevant for the citation",
"PAGE_RANGE": "The range of the pages in the source. The page given for"
" a citation must be in this range.",
"PART": "",
"PLACE_CREATED": "",
"POSITION": "Where in or on the source the citation piece can be found.",
"POSTING_DATE": "",
"PROFESSIONAL_CREDENTIALS": "",
"PROVENANCE": "Where the material originated from.",
"PUBLICATION_FORMAT": "",
"PUBLICATION_PLACE": "",
"PUBLICATION_TITLE": "",
"PUBLICATION_YEAR": "",
"PUBLISHER": "",
"PUB_INFO": "Publication Information, such as city and year of publication, name of publisher, ...",
"RECIPIENT": "The person to who the letter is addressed.",
"RELATIONSHIP": "The relationship of the author to the person of interest that is the subject.",
"REPORT_DATE": "Date the report was written/submitted.",
"RESEARCH_COMMENT": "Descriptive detail or provenance or research analysis conclusion, ...",
"RESEARCH_PROJECT": "The genealogical or scientific research project.",
"ROLL": "The Microfilm role.",
"SCHEDULE": "The census schedule (the type of census table) used, eg population schedule or slave schedule. or ...",
"SECTION": "The section or subgroup under which filed, eg 'Diplomatic correspondance, 1798-1810'",
"SERIES": "",
"SERIES_NO": "",
"SESSION": "The number of the meeting or series of connected meetings devoted "
"by a legislature to a single order of business, program, agenda, or announced purpose.",
"SHEET_NO": "Number of a census sheet.",
"SUBJECT": "",
"SUBSERIES": "",
"SUBTITLE": "",
"TERM": "Reference to the time a person/group/parliament is in office or session.",
"TIMESTAMP": "Indication of the time in audio or video where the relevant fragment can be found.",
"TITLE": "",
"TRANSLATION": "A translated version, typically of the title",
"TYPE": "",
"URL_6DIGITAL_LOCATION9": "Detailed internet address of the content",
"VOLUME": "",
"VOLUME_INFO": "Information about the volumes, eg the amount of volumes.",
"WEBSITE": "The main internet address.",
"WEBSITE_CREATOR_OR_OWNER": "Organization or person behind a website.",
"YEAR": "",
"YEAR_ACCESSED": "",
}
nr = -1
cat = ''
cattype = ''
type = ''
descr = ''
cite_type = ''
ident = ''
TYPE2CITEMAP = {}
FIELDTYPEMAP = {}
FIELDS_SHORT = []
index = 100
indexval = 10
first = True
with open(csvfilename, 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
for row in reader:
if first:
#skip first row with headers
first=False
continue
if row[CATCOL]:
cat = row[CATCOL].strip()
if cat.startswith('EE '):
cat = cat[3:]
EE = True
else:
EE = False
cattype = row[CATTYPECOL].strip()
types = row[TYPECOL].strip()
descr = row[DESCRCOL].strip()
source_type = row[IDENTCOL].strip()
if descr:
source_descr = '%s - %s - %s (%s)' % (cat, cattype, types, descr)
if not EE:
source_descr_code = "_('%(first)s - %(sec)s - %(third)s (%(fourth)s)') % { "\
" 'first': _('" + cat + "'),"\
" 'sec': _('" + cattype + "'),"\
" 'third': _('" + types + "'),"\
" 'fourth': _('" + descr + "')}"
else:
source_descr_code = "_('EE %(first)s - %(sec)s - %(third)s (%(fourth)s)') % { "\
" 'first': _('" + cat + "'),"\
" 'sec': _('" + cattype + "'),"\
" 'third': _('" + types + "'),"\
" 'fourth': _('" + descr + "')}"
else:
source_descr = '%s - %s - %s' % (cat, cattype, types)
if not EE:
source_descr_code = "_('%(first)s - %(sec)s - %(third)s') % { "\
" 'first': _('" + cat + "'),"\
" 'sec': _('" + cattype + "'),"\
" 'third': _('" + types + "')}"
else:
source_descr_code = "_('EE %(first)s - %(sec)s - %(third)s') % { "\
" 'first': _('" + cat + "'),"\
" 'sec': _('" + cattype + "'),"\
" 'third': _('" + types + "')}"
if source_type in TYPE2CITEMAP:
assert TYPE2CITEMAP[source_type] ['descr'] == source_descr, source_type + ' ' + TYPE2CITEMAP[source_type] ['descr'] + ' NOT ' + source_descr
else:
TYPE2CITEMAP[source_type] = {'REF_TYPE_L': [], 'REF_TYPE_F': [],
'REF_TYPE_S': [],
'i': indexval, 'descr': source_descr,
'descrcode': source_descr_code}
indexval += 1
if row[CITETYPECOL]:
#new citation type,
cite_type = row[CITETYPECOL].strip()
if cite_type == 'S':
shortcite = True
else:
shortcite = False
cite_type = CITE_TYPES[cite_type]
#add field for template to evidence style
field = row[FIELDCOL].strip()
field_type = field.replace(' ', '_').replace("'","")\
.replace('&','AND').replace('(', '6').replace(')','9')\
.replace('[', '').replace(']','').replace('/', '_OR_')\
.replace(',', '').replace('.', '').replace(':', '')\
.replace('-', '_')
field_descr = field.replace('[', '').replace(']','').lower().capitalize()
field_label = row[LABELCOL].strip()
field_label = field_label.replace("'", "\\'")
if field_type in FIELDTYPEMAP:
assert field_descr == FIELDTYPEMAP[field_type][1], 'Problem %s %s %s' % (field_type, field_descr, FIELDTYPEMAP[field_type][1])
elif field_type in KNOWN_FIELDS:
#no need to add it
pass
else:
FIELDTYPEMAP[field_type] = (index, field_descr)
index += 1
fielddata = []
private = 'False'
if row[PRIVACYCOL].strip():
private = 'True'
optional = 'False'
if row[OPTCOL].strip():
optional = 'True'
shorteralg = SHORTERALG.get(row[SHORTERCOL].strip()) or 'EMPTY'
gedcommap = GEDCOMFIELDS.get(row[GEDCOMCOL].strip()) or 'EMPTY'
style = STYLES.get(row[STYLECOL].strip()) or 'EMPTY'
hint = row[HINTCOL]
tooltip = row[TOOLTIPCOL]
TYPE2CITEMAP[source_type][cite_type] += [(row[LDELCOL], field_type,
row[RDELCOL], field_label, style, private, optional,
shorteralg, gedcommap, hint, tooltip)]
#if shorttype, we store a type for the short version so user can store
#this
if shortcite and shorteralg == 'EMPTY':
field_type_short = field_type + '_SHORT_VERSION'
if field_type_short in FIELDTYPEMAP or field_type_short in KNOWN_FIELDS:
pass
else:
FIELDTYPEMAP[field_type_short] = (index, field_descr + ' (Short)')
FIELDS_SHORT.append(field_type_short)
index += 1
#now generate the python code we need in source attr types
code = " #following fields are generated with evidencefieldgenerator.py\n" \
" #the index starts at 100!\n"
datamap = "\n _DATAMAP += [\n"
allkeys = sorted(FIELDTYPEMAP.keys())
for field_type in allkeys:
code += " " + field_type + ' = %d\n' % FIELDTYPEMAP[field_type][0]
datamap += ' (' + field_type + ', _("' + FIELDTYPEMAP[field_type][1] \
+'"), "' + FIELDTYPEMAP[field_type][1] + '"),\n'
code += "\n _DATAMAPIGNORE = [\n"
for field in FIELDS_SHORT:
code += " " + field + ',\n'
code += ' ]\n\n' + datamap + ' ]\n'
#now add default hints
code += "\n _DEFAULT_HINTS = {\n"
for key in sorted(DEFAULT_HINTS.keys()):
if DEFAULT_HINTS[key]:
code += " " + key +': _("' + DEFAULT_HINTS[key] + '"),\n'
code += " }\n"
#now add default tooltips
code += "\n _DEFAULT_TOOLTIPS = {\n"
for key in sorted(DEFAULT_TOOLTIPS.keys()):
if DEFAULT_TOOLTIPS[key]:
code += " " + key + ': _("' + DEFAULT_TOOLTIPS[key] + '"),\n'
code += " }\n"
with open('srcattrtype_extra.py', 'wb') as srcattrfile:
srcattrfile.write(code)
#now generate the python code we need in evidencestyle
# we have predefined sourcetypes, and these have a template for formatting
#
#first an English to internationalized map
code = " #SRCTEMPLATE has some predefined values which map to citation styles\n"
datamap = " _SRCTEMPLATEVAL_MAP = [\n"\
" (UNKNOWN, _('Unknown'), 'Unknown'),\n"
allkeys = sorted(TYPE2CITEMAP.keys())
for source_type in allkeys:
code += " " + source_type + ' = %d\n' % TYPE2CITEMAP[source_type]['i']
# we use descrcode in to translate string to reduce work for translators
datamap += " (" + source_type + ", " + TYPE2CITEMAP[source_type]['descrcode'] \
+", '" + source_type+ "'),\n"
code += '\n # Localization of the different source types\n'\
+ datamap + ' ]\n'
code += "\n #templates for the source types defined\n"\
" # F: Full reference\n"\
" # S: Short reference (if F used once, use S afterwards)\n" \
" # L: List reference (for in bibliography list)\n"
code += ' EVIDENCETEMPLATES = {\n'
for source_type in allkeys:
code += " " + source_type + ": {\n"
for val in ['REF_TYPE_L', 'REF_TYPE_F', 'REF_TYPE_S']:
code += " " + val + ": [\n"
for field in TYPE2CITEMAP[source_type][val]:
# field is tuple (row[LDELCOL], field_type, row[RDELCOL],
# field_label, row[STYLECOL]
# , private, optional, shorteralg, gedcommap, hint, tooltip)
if field[9]:
hint = '_("' + field[9] + '")'
else:
hint = 'None'
if field[10]:
tooltip = '_("' + field[10] + '")'
else:
tooltip = 'None'
code += " ('"+ field[0] + "', SrcAttributeType." + field[1] + ", _('"\
+field[3] + "'), '"+ field[2] + "', " + field[4] + ", " + field[5] + ", "\
+ field[6] + ", " + field[7] + ", " + field[8] + ",\n" \
+ " " +hint + ", " + tooltip + "),\n"
code += " ],\n"
code += " },\n"
code += " }\n"
with open('srcattrtype_extraevidence.py', 'wb') as srcattrfile:
srcattrfile.write(code)

View File

@ -0,0 +1,98 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2013 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
This module parses the evidence csv file and generates the code we need in
Gramps to use the evidence style.
"""
#-------------------------------------------------------------------------
#
# Standard Python modules
#
#-------------------------------------------------------------------------
import csv
#-------------------------------------------------------------------------
#
# Code
#
#-------------------------------------------------------------------------
csvfilename = "evidence_style.csv"
NRCOL = 0
CATCOL = 1
CATTYPECOL = 2
TYPECOL = 3
DESCRCOL= 4
CITETYPECOL = 5
IDENTCOL = 6
LDELCOL = 7 # left delimiter
FIELDCOL = 8
LABELCOL = 9
RDELCOL = 10 # right delimiter
GEDCOMCOL = 11
SHORTERCOL = 12
STYLECOL = 13
PRIVACYCOL = 14
OPTCOL = 15
HINTCOL = 16
TOOLTIPCOL = 17
first = True
trans = {}
with open(csvfilename, 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
for row in reader:
if first:
first=False
continue
elif row[CATCOL]:
cat = row[CATCOL].strip()
cattype = row[CATTYPECOL].strip()
types = row[TYPECOL].strip()
descr = row[DESCRCOL].strip()
for val in [cat, cattype, types, descr]:
if val and val not in trans:
trans[val] = '_("' + val + '")'
val = row[HINTCOL]
if val and val not in trans:
trans[val] = '_("' + val + '")'
val = row[TOOLTIPCOL]
if val and val not in trans:
trans[val] = '_("' + val + '")'
#now generate the python code we need in source attr types
code = "#following translations are generated with extract_trans_csv.py\n"
code += "if False:\n"
code += " #these translations will only occur when needed first time!\n"
allkeys = sorted(trans.keys())
for field in allkeys:
code += " " + trans[field] + '\n'
with open('csv_trans.py', 'wb') as srcattrfile:
srcattrfile.write(code)

View File

@ -25,15 +25,15 @@
-->
<!--
This is the Document Type Definition file for v1.5.0
This is the Document Type Definition file for v1.6.0
of the GRAMPS XML genealogy data format.
Please use the following formal public identifier to identify it:
"-//GRAMPS//DTD GRAMPS XML V1.5.0//EN"
"-//GRAMPS//DTD GRAMPS XML V1.6.0//EN"
For example:
<!DOCTYPE database PUBLIC "-//GRAMPS//DTD GRAMPS XML V1.5.0//EN"
"http://gramps-project.org/xml/1.5.0/grampsxml.dtd"
<!DOCTYPE database PUBLIC "-//GRAMPS//DTD GRAMPS XML V1.6.0//EN"
"http://gramps-project.org/xml/1.6.0/grampsxml.dtd"
[...]>
-->
@ -215,7 +215,8 @@ EVENT
<!ELEMENT events (event)*>
<!ELEMENT event (type?, (daterange|datespan|dateval|datestr)?, place?, cause?,
description?, attribute*, noteref*, citationref*, objref*)>
description?, attribute*, noteref*, citationref*, objref*,
tagref*)>
<!ATTLIST event
id CDATA #IMPLIED
handle ID #REQUIRED
@ -228,17 +229,16 @@ SOURCES
-->
<!ELEMENT sources (source)*>
<!ELEMENT source (stitle?, sauthor?, spubinfo?, sabbrev?,
noteref*, objref*, data_item*, reporef*)>
<!ELEMENT source (sname?, stemplate?, sabbrev?,
noteref*, objref*, srcattribute*, reporef*, tagref*)>
<!ATTLIST source
id CDATA #IMPLIED
handle ID #REQUIRED
priv (0|1) #IMPLIED
change CDATA #REQUIRED
>
<!ELEMENT stitle (#PCDATA)>
<!ELEMENT sauthor (#PCDATA)>
<!ELEMENT spubinfo (#PCDATA)>
<!ELEMENT sname (#PCDATA)>
<!ELEMENT stemplate (#PCDATA)>
<!ELEMENT sabbrev (#PCDATA)>
<!-- ************************************************************
@ -248,7 +248,7 @@ PLACES
<!ELEMENT places (placeobj)*>
<!ELEMENT placeobj (ptitle?, coord?, location*, objref*, url*, noteref*,
citationref*)>
citationref*, tagref*)>
<!ATTLIST placeobj
id CDATA #IMPLIED
handle ID #REQUIRED
@ -305,7 +305,7 @@ REPOSITORIES
<!ELEMENT repositories (repository)*>
<!ELEMENT repository (rname, type, address*, url*, noteref*)>
<!ELEMENT repository (rname, type, address*, url*, noteref*, tagref*)>
<!ATTLIST repository
id CDATA #IMPLIED
handle ID #REQUIRED
@ -367,14 +367,15 @@ CITATIONS
<!ELEMENT citations (citation)*>
<!ELEMENT citation ((daterange|datespan|dateval|datestr)?, page?, confidence?,
noteref*, objref*, data_item*, sourceref)>
<!ELEMENT citation ((daterange|datespan|dateval|datestr)?, cname?, confidence?,
noteref*, objref*, srcattribute*, sourceref, tagref*)>
<!ATTLIST citation
id CDATA #IMPLIED
handle ID #REQUIRED
priv (0|1) #IMPLIED
change CDATA #REQUIRED
>
<!ELEMENT cname (#PCDATA)>
<!-- ************************************************************
BOOKMARKS
@ -493,6 +494,13 @@ SHARED ELEMENTS
value CDATA #REQUIRED
>
<!ELEMENT srcattribute EMPTY>
<!ATTLIST srcattribute
priv (0|1) #IMPLIED
type CDATA #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT place EMPTY>
<!ATTLIST place hlink IDREF #REQUIRED>

View File

@ -32,7 +32,7 @@
<grammar
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://gramps-project.org/xml/1.5.0/"
ns="http://gramps-project.org/xml/1.6.0/"
xmlns="http://relaxng.org/ns/structure/1.0">
<start><element name="database">
@ -160,6 +160,9 @@
<value>0</value>
<value>1</value>
</choice></attribute></optional>
<zeroOrMore><element name="tagref">
<ref name="tagref-content"/>
</element></zeroOrMore>
</define>
<define name="person-content">
@ -205,9 +208,6 @@
<zeroOrMore><element name="citationref">
<ref name="citationref-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="tagref">
<ref name="tagref-content"/>
</element></zeroOrMore>
</define>
<define name="child-rel">
@ -403,9 +403,6 @@
<zeroOrMore><element name="citationref">
<ref name="citationref-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="tagref">
<ref name="tagref-content"/>
</element></zeroOrMore>
</define>
<define name="event-content">
@ -433,7 +430,7 @@
<define name="citation-content">
<ref name="primary-object"/>
<optional><ref name="date-content"/></optional>
<optional><element name="page"><text/></element></optional>
<optional><element name="cname"><text/></element></optional>
<optional><element name="confidence"><text/></element></optional>
<zeroOrMore><element name="noteref">
<ref name="noteref-content"/>
@ -441,9 +438,8 @@
<zeroOrMore><element name="objref">
<ref name="objref-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="data_item">
<attribute name="key"><text/></attribute>
<attribute name="value"><text/></attribute>
<zeroOrMore><element name="srcattribute">
<ref name="srcattribute-content"/>
</element></zeroOrMore>
<element name="sourceref">
<ref name="sourceref-content"/>
@ -452,9 +448,8 @@
<define name="source-content">
<ref name="primary-object"/>
<optional><element name="stitle"><text/></element></optional>
<optional><element name="sauthor"><text/></element></optional>
<optional><element name="spubinfo"><text/></element></optional>
<optional><element name="sname"><text/></element></optional>
<optional><element name="stemplate"><text/></element></optional>
<optional><element name="sabbrev"><text/></element></optional>
<zeroOrMore><element name="noteref">
<ref name="noteref-content"/>
@ -462,9 +457,8 @@
<zeroOrMore><element name="objref">
<ref name="objref-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="data_item">
<attribute name="key"><text/></attribute>
<attribute name="value"><text/></attribute>
<zeroOrMore><element name="srcattribute">
<ref name="srcattribute-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="reporef">
<ref name="reporef-content"/>
@ -520,9 +514,6 @@
<zeroOrMore><element name="citationref">
<ref name="citationref-content"/>
</element></zeroOrMore>
<zeroOrMore><element name="tagref">
<ref name="tagref-content"/>
</element></zeroOrMore>
</define>
<define name="repository-content">
@ -581,9 +572,6 @@
</choice></attribute></optional>
<attribute name="type"><text/></attribute>
<ref name="styledtext"/>
<zeroOrMore><element name="tagref">
<ref name="tagref-content"/>
</element></zeroOrMore>
</define>
<define name="styledtext">
@ -680,6 +668,14 @@
<ref name="noteref-content"/>
</element></zeroOrMore>
</define>
<define name="srcattribute-content">
<optional><attribute name="priv">
<ref name="priv-content"/>
</attribute></optional>
<attribute name="type"><text/></attribute>
<attribute name="value"><text/></attribute>
</define>
<define name="url-content">
<optional><attribute name="priv">

View File

@ -1,14 +0,0 @@
# This is the data/man level Makefile for Gramps
# $Id$
SUBDIRS = fr sv nl pl cs pt_BR
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -48,9 +48,9 @@ copyright = u'2012, Gramps project'
# built documents.
#
# The short X.Y version.
version = '4.0'
version = '4.1'
# The full version, including alpha/beta/rc tags.
release = '4.0.0-alpha2'
release = 'trunk'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -1,14 +0,0 @@
# This is the data/man/sv level Makefile for Gramps
# $Id: Makefile.am 6189 2006-03-21 19:05:46Z rshura $
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
mandir = @mandir@/cs
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/cs/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -1,14 +0,0 @@
# This is the data/man/fr level Makefile for Gramps
# $Id$
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
mandir = @mandir@/fr
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/fr/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -48,9 +48,9 @@ copyright = u'2012, Gramps project'
# built documents.
#
# The short X.Y version.
version = '4.0'
version = '4.1'
# The full version, including alpha/beta/rc tags.
release = '4.0.0-alpha2'
release = 'trunk'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -1,15 +0,0 @@
# This is the data/man/nl level Makefile for Gramps
# $Id: Makefile.am 9819 2008-01-15 15:42:10Z bmcage $
mandir = @mandir@/nl
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/nl/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -1,14 +0,0 @@
# This is the data/man/sv level Makefile for Gramps
# $Id: Makefile.am 6189 2006-03-21 19:05:46Z rshura $
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
mandir = @mandir@/pl
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/pl/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -1,14 +0,0 @@
# This is the data/pt_BR level Makefile for Gramps
# $Id: Makefile.am 16377 2011-01-13 18:32:42Z matlas $
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
mandir = @mandir@/pt_BR
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/pt_BR/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -1,14 +0,0 @@
# This is the data/man/sv level Makefile for Gramps
# $Id: Makefile.am 6189 2006-03-21 19:05:46Z rshura $
man_IN_FILES = gramps.1.in
man_MANS = $(man_IN_FILES:.1.in=.1)
mandir = @mandir@/sv
EXTRA_DIST = $(man_MANS) $(man_IN_FILES)
gramps.1: $(top_builddir)/config.status gramps.1.in
cd $(top_builddir) && CONFIG_FILES=data/man/sv/$@ $(SHELL) ./config.status
CLEANFILES=$(man_MANS)

View File

@ -52,11 +52,11 @@ SPHINXBUILD = 'sphinx-build'
if sys.platform == 'win32':
pythonCmd = os.path.join(sys.prefix, 'bin', 'python.exe')
sphinxCmd = os.path.join(sys.prefix, 'bin', 'sphinx-build.exe')
elif sys.platform == 'linux2' or os.name == 'darwin':
elif sys.platform in ['linux2', 'darwin', 'cygwin']:
pythonCmd = os.path.join(sys.prefix, 'bin', 'python')
sphinxCmd = SPHINXBUILD
else:
print ("ERROR: unknown system, don't know sphinx, ... commands")
print ("Update Man ERROR: unknown system, don't know sphinx, ... commands")
sys.exit(0)
def tests():

Some files were not shown because too many files have changed in this diff Show More