Commit Graph

70 Commits

Author SHA1 Message Date
Gerald Britton
8f0582df8a Use built-in functions to replace for loops:
Old code:

for x in y:
  f(x)

New Code:

map(f, y)

Also use defaultdict instead of simple dict when advantageous and use list comprehensions
instead of for loops where map() could be used but requires lambdas.


svn: r14135
2010-01-25 17:45:21 +00:00
Peter Landgren
418618d856 Better output of pre- and unformatted notes and of end notes references.
svn: r14098
2010-01-19 12:47:48 +00:00
Peter Landgren
e18dd1d560 Better output of pre- and unformatted notes and of end notes references.
svn: r14097
2010-01-19 12:47:17 +00:00
Gerald Britton
517a5e3c90 Tweaks and minor refactoring
svn: r14096
2010-01-18 20:14:59 +00:00
Brian Matherly
f04880ec09 Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
svn: r14091
2010-01-18 04:42:17 +00:00
Peter Landgren
98ad2bda38 Trying to fix Notes and end notes ref. It is better now, but still some more to do.
svn: r14079
2010-01-14 19:53:08 +00:00
Peter Landgren
27dd026a97 Fix of issue 2848.
svn: r14064
2010-01-13 18:40:55 +00:00
Serge Noiraud
aec92a4929 ODFDoc : issue 3439, 3440, 3461, 3462
svn: r14026
2010-01-11 08:11:50 +00:00
Serge Noiraud
da41542da6 ODFDoc : issue 3440; only remove fo:max-height.
svn: r13989
2010-01-07 20:40:24 +00:00
Doug Blank
699dcb13fe Fixed svn Id property
svn: r13881
2009-12-21 13:43:50 +00:00
Serge Noiraud
06f3521239 ODFdoc : issues 3439, 3440, 3461 and 3462.
svn: r13867
2009-12-20 23:51:18 +00:00
Doug Blank
2ed9ac56e4 Fixed a bug in HTML table widths; allow args to make_basic_stylesheet; add scrollbars to tabbed items
svn: r13660
2009-11-23 01:39:29 +00:00
Jérôme Rapinat
22b476be8a 3343: Misnamed report format. Open Document to OpenDocument
svn: r13632
2009-11-19 11:13:39 +00:00
Doug Blank
f272ce3dd1 Move gtk-based items out of scope of import for cli
svn: r13599
2009-11-16 22:39:54 +00:00
Doug Blank
406e46eac9 Added link and underline sections to base and html docgen types; defaults to silent pass so that we can add to other docgen types without breaking anything yet
svn: r13587
2009-11-15 13:15:54 +00:00
Benny Malengier
e03cd66c2d 3304: current HTML modules add a newline for every doc.write_text()
svn: r13439
2009-10-28 08:15:16 +00:00
Benny Malengier
53de46901e add license to gpr.py files
svn: r13424
2009-10-26 19:15:58 +00:00
Jérôme Rapinat
af0455bcdd typo
svn: r13407
2009-10-25 14:58:17 +00:00
Benny Malengier
ed619cfdd6 3292: register plugins, load on need, not on start of GRAMPS - GEPS 014
svn: r13400
2009-10-24 13:53:20 +00:00
Jérôme Rapinat
d1fbb2bff9 3309: HtmlDoc module ignores title-style of reports (contribution by lcc)
svn: r13399
2009-10-24 07:17:04 +00:00
Doug Blank
edc6dc8f0f 3259: CSS ordering broken for html text reports from lcc
svn: r13333
2009-10-07 13:18:51 +00:00
Gerald Britton
941fff23ae Tweaks to use inplace arithmetic
svn: r13191
2009-09-10 18:49:48 +00:00
Serge Noiraud
442eaf9923 ODFDoc : issue 3187 : <, > and & should be escaped
svn: r13118
2009-08-25 16:48:12 +00:00
Serge Noiraud
3d13046fa0 ODFDoc : Styled notes : Bad format, font, indents and spacing.
svn: r13113
2009-08-23 22:00:34 +00:00
Serge Noiraud
8e7c827c83 ODFDoc : More pylint compliant.
Duplicate styles and fonts suppression.
         Multi line now works correctly : tested with multi-lines attribut.



svn: r13102
2009-08-21 20:54:14 +00:00
Jérôme Rapinat
ef08e419d1 update french translation
svn: r13092
2009-08-20 15:15:10 +00:00
Serge Noiraud
e60588a5b0 ODFDoc : highlight problem in styled notes.
svn: r13081
2009-08-19 22:01:28 +00:00
Serge Noiraud
6e7970895d ODFDoc : forgot to suppress a print line.
svn: r13056
2009-08-17 22:38:50 +00:00
Serge Noiraud
786bf9b1fd ODFDoc : Styled notes integration.
svn: r13054
2009-08-17 22:23:26 +00:00
Raphael Ackermann
5ae1a75bc0 0003137: Attribute error on EmptyDoc for all graphical reports - only with PostScript and SVG output formats !
removed 'template' parameter from init method.
problem was that they still used template parameter, when BaseDoc didn't have a template parameter anymore.

also pylint cleanup

svn: r12927
2009-08-08 19:15:19 +00:00
Raphael Ackermann
c839502568 remove unused import
svn: r12926
2009-08-08 19:12:12 +00:00
Benny Malengier
31f923bab6 avoid cli crash if css file is passed that does not exist
svn: r12807
2009-07-16 12:48:31 +00:00
Gerald Britton
fdfacd972c Minor tweaks to use slices instead of lists of items
svn: r12705
2009-06-25 13:41:16 +00:00
Rob G. Healey
ae28b8538b Fixed Utils.open_file_with_default_application() to gui.utils instead of Utils now. Works again.
svn: r12699
2009-06-23 20:49:18 +00:00
Benny Malengier
aa5aa031c0 fix ODF output put, prettify kinship html output
svn: r12657
2009-06-12 07:31:30 +00:00
Benny Malengier
f78db6f418 2707: Add markup notes to html output. Finished
svn: r12654
2009-06-11 13:01:27 +00:00
Benny Malengier
e4de221227 2707: Add markup notes to html output: div and class elements
svn: r12647
2009-06-09 20:47:32 +00:00
Benny Malengier
a177da80b0 2707: Add markup notes to html output
Part 2: enable css, clean up code.
      TODO: better output, support in default css files, test


svn: r12644
2009-06-08 23:19:37 +00:00
Benny Malengier
542b1e404d 02707: Add markup notes to html output
part 1: remove template from html output


svn: r12631
2009-06-06 09:49:40 +00:00
Benny Malengier
142e7e4970 move latexbackend into PdfDoc
svn: r12614
2009-06-02 18:42:41 +00:00
Benny Malengier
fb3ec68c6a part 3 : split basedoc in files, remove Utils dependance, move fontscale in gen,
update build system


svn: r12603
2009-05-31 14:59:56 +00:00
Benny Malengier
8dd7adc607 part 2 basedoc: move BaseDoc.py to /gen/plug/docgen and add /gen/plug/docbackend
that was missing in part 1 
 Still to come: makefiles and splitting new basedoc.py in small files


svn: r12591
2009-05-29 22:25:44 +00:00
Benny Malengier
f999ba9cc4 Part 1 basedoc changes: move out backend stuff from BaseDoc, use backend in
the docs. As a dir change will be done, backend itself will be committed 
later, trunk will be broken till then


svn: r12590
2009-05-29 19:52:57 +00:00
Gerald Britton
5eb7e18dc6 Bug 3018: ImportGrdb: remove calls to keys() dictionary method where possible
svn: r12572
2009-05-26 20:48:09 +00:00
Gerald Britton
021b754939 Bug 3011: change old-style classes to new-style classes
svn: r12559
2009-05-21 17:19:50 +00:00
Rob G. Healey
b282953be5 Removed missing gladefile in src/plugins/docgen/Makefile.am for allow complete to finish. Applied large image scaling in NarrativeWeb.
svn: r12554
2009-05-20 23:26:30 +00:00
Benny Malengier
ac6ef2a9bc 2956: Errors with GTKPrint on Ubuntu 9.04
svn: r12547
2009-05-19 09:00:48 +00:00
Gerald Britton
73e1ab5722 Bug 2888: downgrade the glade files in tools to gtk version 2.12
svn: r12538
2009-05-18 15:36:03 +00:00
Gerald Britton
110557c3c7 Add glade.py with Glade class and use instead of gtk.Builder throughout project
svn: r12528
2009-05-14 20:15:59 +00:00
Serge Noiraud
a01e27d254 ODFDoc : internal permission of files and encoding.
svn: r12514
2009-05-08 20:22:56 +00:00