Commit Graph

346 Commits

Author SHA1 Message Date
Nick Hall
9c66c62d5c Add tagging to all primary objects
svn: r21194
2013-01-22 16:12:15 +00:00
John Ralls
7fb81b5c21 GrampsLocale: Fix call to member function.
svn: r21186
2013-01-21 15:14:17 +00:00
John Ralls
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
John Ralls
795b45c82f relationship.py: Remove unused import
svn: r21181
2013-01-21 01:27:21 +00:00
John Ralls
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
Gary Burton
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
Tim G L Lyons
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
John Ralls
9e09c4233f GrampsLocale: Fix another typo
svn: r21171
2013-01-19 00:56:18 +00:00
John Ralls
b0e9f158d5 GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE
svn: r21170
2013-01-18 22:23:11 +00:00
John Ralls
d5d0523303 GrampsLocale: Fix the typo in my typo fix.
svn: r21169
2013-01-18 22:04:46 +00:00
John Ralls
1a43859587 GrampsLocale: get_relationship_calculator: Fix missed variable name change.
svn: r21168
2013-01-18 21:27:48 +00:00
Nick Hall
d189448f39 Use public interface of Gtk.TreeModel in listview code
svn: r21165
2013-01-18 18:46:09 +00:00
Nick Hall
ddff6f95d9 6353: Fix error when setting colours
svn: r21163
2013-01-18 18:24:13 +00:00
Nick Hall
e4c0e079e7 Remove handle and tooltip columns from models
svn: r21158
2013-01-17 21:58:53 +00:00
John Ralls
5e914292fe Fix GeoGraphyView.__init__ arg list for simplified bookmarks
svn: r21157
2013-01-17 19:49:04 +00:00
John Ralls
85a082bb6d Descendant Report: Fix changed Sort function name
svn: r21156
2013-01-17 19:48:58 +00:00
John Ralls
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
John Ralls
3f7d8933c7 Import get_svn_revision into const.py (via const.py.in, of course)
svn: r21154
2013-01-17 19:48:44 +00:00
John Ralls
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
John Ralls
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
John Ralls
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
John Ralls
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
John Ralls
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
John Ralls
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
John Ralls
cc4ec85b4d [Bug 6364] Fix file-opening failures due to unicode content.
svn: r21147
2013-01-17 19:47:44 +00:00
John Ralls
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
John Ralls
ef7e047b4b [Bug 6222]: Get the addons language list from the primary
GrampsLocale instance.

svn: r21145
2013-01-17 19:47:21 +00:00
John Ralls
ef6892abbd GrampsLocale: Remove ggettext
svn: r21144
2013-01-17 19:46:55 +00:00
John Ralls
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
John Ralls
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
Nick Hall
7bb5c75d6a 6333: Display optional close button in gramplet bar tabs
svn: r21140
2013-01-16 23:59:48 +00:00
Nick Hall
a323f92482 Tidy up bookmark code
svn: r21139
2013-01-15 22:30:18 +00:00
Nick Hall
ae65778d27 6331: Fix spelling mistakes
svn: r21137
2013-01-15 21:04:57 +00:00
Benny Malengier
b3ceb3e828 6338: NotImplementedError on Export a View to a spreadsheet from the People Category
svn: r21136
2013-01-15 19:49:07 +00:00
Nick Hall
aa021c36c8 Allow icons as column headings in listviews
svn: r21134
2013-01-15 18:46:18 +00:00
Nick Hall
0b2ccdee6d Add family filter to match twins
svn: r21132
2013-01-15 18:27:43 +00:00
Benny Malengier
7672f64221 6330: Can't download ans install addons
svn: r21131
2013-01-15 10:59:13 +00:00
Benny Malengier
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
Benny Malengier
48f3002e95 factor out double handle2internal
svn: r21127
2013-01-15 08:49:22 +00:00
Benny Malengier
926dbca98f 6329: Crazy citations after XML import of bacuo from Gramps 3.4.3
svn: r21123
2013-01-15 08:42:50 +00:00
Doug Blank
22f646ccce Don't convert handle if None
svn: r21121
2013-01-14 22:05:29 +00:00
Benny Malengier
00bd4b81f8 6326: Running Export View crashes with 'tuple' object has no attribute 'get_indices'
svn: r21120
2013-01-14 18:57:47 +00:00
Doug Blank
ae517eb9c7 Changes for 1.6 svn
svn: r21117
2013-01-14 18:38:44 +00:00
Paul Franklin
7af413bbc4 more absolute addressing, not relative
svn: r21115
2013-01-14 18:25:54 +00:00
Nick Hall
b20e711c30 1765: Add private column to views
svn: r21114
2013-01-14 16:49:52 +00:00
Doug Blank
4cbdd52389 Rename Gramplet View to Dashboard View
svn: r21112
2013-01-14 11:49:51 +00:00
Doug Blank
094726c14f indent typo
svn: r21103
2013-01-13 17:19:29 +00:00
Nick Hall
347d371b77 Improvement to dropdown navigation plugin
svn: r21102
2013-01-13 17:09:53 +00:00
Doug Blank
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
Benny Malengier
7fc4d4ec3f 6288: crash: no attribute 'require_version'
svn: r21100
2013-01-13 16:51:04 +00:00
Doug Blank
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
Paul Franklin
47b1b251bc 6229: bug when creating a book reports
svn: r21090
2013-01-13 01:07:19 +00:00
Nick Hall
73b26752b0 Add two experimental navigation plugins
svn: r21088
2013-01-12 23:35:45 +00:00
Benny Malengier
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
Benny Malengier
ecd18dfbce 6321: installed rcs and tried to make an archive
svn: r21083
2013-01-12 14:48:49 +00:00
Nick Hall
6c313b0a58 6306: Remove focus from the help button in detached gramplet windows
svn: r21080
2013-01-12 00:03:16 +00:00
Benny Malengier
c72a3f2492 6310: Warning dialog "No Home Person" should be helpful and more descriptive
svn: r21079
2013-01-11 22:52:27 +00:00
Benny Malengier
bb491fa5ef 6291: No Text report, with output format ODF, is created
svn: r21077
2013-01-11 22:32:41 +00:00
Nick Hall
0cffe803a5 6312: Fix Dashboard category icon
svn: r21074
2013-01-11 22:10:27 +00:00
Nick Hall
35add93f04 6307: Bug fixes for To Do gramplets
svn: r21071
2013-01-11 19:23:38 +00:00
Benny Malengier
620446303f fix error from fix encoding issue for python 3
svn: r21070
2013-01-11 17:20:16 +00:00
Nick Hall
d59317881a 6307: Improved ToDo gramplets
svn: r21067
2013-01-11 16:09:23 +00:00
Benny Malengier
0ffe2869d6 fix home button issue in python3
svn: r21066
2013-01-11 15:18:11 +00:00
Benny Malengier
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
Doug Blank
549434612e Check for outdated const.py file
svn: r21061
2013-01-11 13:49:21 +00:00
Doug Blank
fdc926d942 Return correct field types for media path, desc, and mime
svn: r21059
2013-01-11 13:22:07 +00:00
Doug Blank
31d2a7e3a0 Media Description not reported, typo
svn: r21057
2013-01-11 13:18:55 +00:00
Benny Malengier
9155b2feb6 fix encoding issue for python 3
svn: r21055
2013-01-11 13:04:49 +00:00
Doug Blank
7fd98348ee Need to log in to run reports
svn: r21053
2013-01-10 19:18:57 +00:00
Doug Blank
cc62366d42 Gramps Version number now includes svn
svn: r21050
2013-01-10 17:42:47 +00:00
Nick Hall
dd296535de 6312: Rename Gramplets category to Dashboard
svn: r21048
2013-01-10 10:50:25 +00:00
Nick Hall
f8f152c1f0 6309: Wrap text in empty gramplet bar tab
svn: r21046
2013-01-09 19:52:44 +00:00
Benny Malengier
be608b715e 6311: Export assistant to export a GEDCOM fail
svn: r21045
2013-01-09 10:21:07 +00:00
Benny Malengier
96a727e825 6311: Export assistant to export a GEDCOM fails
svn: r21042
2013-01-09 10:12:12 +00:00
Nick Hall
35073e9185 Fix svn revision import
svn: r21035
2013-01-08 18:31:51 +00:00
Nick Hall
fd227ef251 Change to absolute paths in const.py
svn: r21033
2013-01-08 17:26:44 +00:00
Benny Malengier
6bf8994fbb 6299: Calendar Gramplet does not display anything
6301: ImportError: No module named QuestionDialog


svn: r21032
2013-01-08 09:03:25 +00:00
Doug Blank
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
Doug Blank
330b8388d7 Removed extra else: typo
svn: r21027
2013-01-08 02:35:35 +00:00
Nick Hall
37c01ad307 Restore Makefiles removed by mistake
svn: r21024
2013-01-07 22:26:38 +00:00
Benny Malengier
1fe37cae6f fix error of revision 20699
svn: r21021
2013-01-07 09:17:16 +00:00
Doug Blank
186d7e0ec4 typo in args error reporting
svn: r21016
2013-01-06 21:49:30 +00:00
Doug Blank
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
Doug Blank
d5b71cc6b7 display error messages correctly
svn: r21013
2013-01-06 21:39:42 +00:00
Benny Malengier
83fdd19efe 6256: Can't create graph reports
svn: r21012
2013-01-06 21:35:45 +00:00
John Ralls
f14b5d8944 Fix up mactrans.py for python3
svn: r21010
2013-01-06 20:40:46 +00:00
Doug Blank
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
Doug Blank
9b1ab12514 Don't show svnversion non-version response
svn: r21007
2013-01-06 01:20:27 +00:00
Benny Malengier
2380586eff 06256: Can't create graph reports
svn: r21002
2013-01-05 13:33:17 +00:00
Benny Malengier
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
Benny Malengier
a7a82a6947 6256: Can't create graph reports
svn: r20996
2013-01-05 11:34:48 +00:00
Benny Malengier
e84ccb92db 6277: Out of index when creating textreort with PDF format
svn: r20994
2013-01-05 11:19:14 +00:00
Doug Blank
c194bda8ce Handle version with text such as '-alpha' number in const.py
svn: r20992
2013-01-05 02:58:18 +00:00
Nick Hall
ae31189b32 Move images and data directories
svn: r20989
2013-01-04 23:09:12 +00:00
Paul Franklin
30173f5910 revert accidental 20685 regression (iteritems)
svn: r20987
2013-01-04 22:57:40 +00:00
Nick Hall
57dc4c0118 Convert filenames to lower case
svn: r20985
2013-01-04 22:29:44 +00:00
Nick Hall
79576762c4 Remove remaining make files
svn: r20978
2013-01-04 17:36:50 +00:00
Nick Hall
28a51a72d5 6281: Rename GrampsBar to GrampletBar and move into widgets directory
svn: r20977
2013-01-04 17:16:28 +00:00
Peter Landgren
71e5bb4c81 Fix of divison issue. There might be more of them.
svn: r20975
2013-01-04 15:38:44 +00:00
Benny Malengier
b380a6b04f 6273: Detaching Gramplet in Sidebar/Bottombar views are not using full area
svn: r20974
2013-01-04 14:08:36 +00:00