Commit Graph

161 Commits

Author SHA1 Message Date
Peter Landgren
8d4624bdbc Fix of issue 2492.
svn: r11305
2008-11-16 07:56:34 +00:00
Kees Bakker
3c85a65fd3 Small correction of generated HTML.
* src/plugins/NarrativeWeb.py


svn: r11284
2008-11-10 21:37:20 +00:00
Kees Bakker
0ead404135 Cleanup work to make NarrativeWeb and WebCal. With this they should
produce webpages similar to grams 3.x, but under the hood there are a
lot of changes. There are new and improved CSS files and images. And
these are shares between NarrativeWeb and WebCal.
  *** Many thanks to Jason and Rob. ***


svn: r11180
2008-10-21 18:57:42 +00:00
Stéphane Charette
f26db0ed0a include thumbnails in ancestor diagram
svn: r11103
2008-10-03 10:38:19 +00:00
Brian Matherly
9c364490ce Move PluginUtils/_PluginMgr.py to gen/plug/_manager.py. Now, instead of "from PluginUtils import PluginManager", use "from gen.plug import PluginManager".
svn: r11100
2008-10-02 04:02:10 +00:00
Brian Matherly
b0f5322346 Fix typo in narrative web report that causes crash.
svn: r11095
2008-09-29 03:32:51 +00:00
Brian Matherly
e811924e77 Move PluginUtils._MenuOptions into a new module in gen.plug.menu. Also, put each class in its own file so that it will scale better as new options are added.
svn: r11086
2008-09-27 13:56:17 +00:00
Gary Burton
d7731cf102 Build source page a second time for sources referenced by gallery. Bug #1280.
svn: r10988
2008-08-14 21:03:50 +00:00
Brian Matherly
2f04e98374 0002281: Like label on gramps.glade file, to use Zip/Postal code on plugins labels (contribution from Jérôme Rapinat <romjerome@yahoo.fr>).
svn: r10889
2008-07-21 02:53:09 +00:00
Gerald Britton
882199f1c2 Replace dict.has_key(x) with x in dict for performance gain
svn: r10874
2008-07-17 18:10:32 +00:00
Kees Bakker
7c11d6bf70 Translation issues found by Peter Landgren.
* src/plugins/NarrativeWeb.py


svn: r10871
2008-07-17 12:10:17 +00:00
Kees Bakker
63a936c593 Several fixes. "styles" directory was not present before copying
files into. Correction of filename in copyright part. Eliminate
store_file and replaced by copy_file (takes care of directory creation
and error message.)
	* src/plugins/NarrativeWeb.py


svn: r10870
2008-07-17 11:54:33 +00:00
Kees Bakker
445da31691 Update from Rob Healey and Jason Simanek: new stylesheets and
some (small?) changes in the generated HTML.
(( Not fully tested, please give it a try ))
	* src/plugins/NarrativeWeb.py


svn: r10869
2008-07-16 07:59:29 +00:00
Kees Bakker
de7fd94504 (Changes by Rob Healey)
Rename display_header, display_footer to write_header, write_footer.
A couple format changes in the HTML output.
	* src/plugins/NarrativeWeb.py


svn: r10863
2008-07-15 13:37:17 +00:00
Stéphane Charette
2824964116 report #2270 - NarrativeWeb skips over step-siblings
svn: r10844
2008-07-06 08:40:47 +00:00
Gerald Britton
6037e9fdd4 Replace lambdas with list comprehensions
svn: r10843
2008-07-04 17:27:51 +00:00
Kees Bakker
eff4c42626 Fix for bug 2232. Thank you, sanjuro, for the patch.
* src/plugins/NarrativeWeb.py


svn: r10840
2008-07-03 19:46:50 +00:00
Kees Bakker
b2625ec23f Fix for bug 1969. There were two places where a .html extension was
missing. I'll have to check if bugs 2230 and 2232 are solved as well.
        * src/plugins/NarrativeWeb.py


svn: r10839
2008-07-03 19:10:05 +00:00
Kees Bakker
e4f568cd01 NavWebReport.copy_file correction variable name.
DownloadPage.__init__ correction of parameter for display_header (found by Jason).
	* src/plugins/NarrativeWeb.py


svn: r10835
2008-07-01 08:34:08 +00:00
Stéphane Charette
ae2a2917c4 bug report #2234; notes should be separated from the previous text to which they apply; merged from gramps30
svn: r10824
2008-06-21 08:42:31 +00:00
Gerald Britton
fb5b8250c4 Fix typo in NarrativeWeb.py: Bug 002231
svn: r10820
2008-06-19 14:41:04 +00:00
Stéphane Charette
e45bec4eb7 bug report #2229: parental relationship redundantly says 'Birth'; merged from gramps30
svn: r10818
2008-06-18 05:06:25 +00:00
Gerald Britton
4982292774 Code optimizations wrt handling of None - bug 2212
svn: r10811
2008-06-16 15:01:46 +00:00
Brian Matherly
0b70388483 0002204: Narrative Web report "restrict living" is different than Gramps 2.x
svn: r10786
2008-06-05 03:45:14 +00:00
Kees Bakker
fbdd98920c Oops. Missing db in display_event_row
* src/plugins/NarrativeWeb.py


svn: r10747
2008-05-20 19:45:29 +00:00
Kees Bakker
c81cfef16f Converted event display to use a table with columns. The original
function (format_event) is still used for family events, but that should
be converted too.
        * src/plugins/NarrativeWeb.py


svn: r10746
2008-05-20 19:24:03 +00:00
Brian Matherly
3afbd461c0 Put all the plugin management and registration stuff into a class. This new class is named PluginManager. It is a Singleton so that everyone gets access to the same plugin information.
svn: r10741
2008-05-18 19:24:28 +00:00
Eero Tamminen
18fb84db7f Types used for the parent relation by the display_ind_parents()
method and the display_parent() method called by that did not match.
Fixed the bug so that the code for showing the relation only if it's
a non-birth one works.  This bug was inherited from Gramps 2.2.x.


svn: r10706
2008-05-11 19:25:39 +00:00
Eero Tamminen
16e6246463 - remove extra/wrong '(' from translatable event date/place string
- it's not enough to have line breaks between notes, the notes
  themselves need to be separated from previous content too.
  I used page break for that too


svn: r10705
2008-05-11 19:19:38 +00:00
Stéphane Charette
1c2981e203 bug report #2131, display latitude before longitude
svn: r10681
2008-05-06 06:51:22 +00:00
Stéphane Charette
b7aac9c7f0 better handling of end-of-line for text notes; use [br] like we do in 2.2.x instead of [p]
svn: r10659
2008-05-04 07:05:42 +00:00
Kees Bakker
75b1a77e99 Eliminate text concatenation. (Patch by Eero, kiitos.)
* src/plugins/NarrativeWeb.py


svn: r10569
2008-04-16 14:46:48 +00:00
Gary Burton
d97f73f71b Do not show duplicate media in person gallery
svn: r10561
2008-04-13 20:40:12 +00:00
Brian Matherly
4524d43b4d 0002032: translation of apostrophes in source titles (web report)
svn: r10558
2008-04-12 02:49:34 +00:00
Kees Bakker
5a953ce6b8 Undo sorting of children by birthdate. Let's first do a feature request
and see what comes out of that.
        * src/plugins/NarrativeWeb.py


svn: r10524
2008-04-08 17:11:48 +00:00
Kees Bakker
1fa86e8c93 Sort list of children on birthdate. I guess we may need an option in
the gui for this.
        * src/plugins/NarrativeWeb.py


svn: r10519
2008-04-07 19:38:08 +00:00
Kees Bakker
d5962794fa Eliminated function to set div id for class content.
Moved some functions around to classes where they are used.
        * src/plugins/NarrativeWeb.py


svn: r10431
2008-03-31 19:50:37 +00:00
Kees Bakker
d579d8543a Moving many functions from BasePage to NavWebReport. Introducing new
functions to deal with disk file and functions that deal with URLs.
Changed to selection of the extra two subdirectories so that the ppl
tree is much better balanced (not all files in one directory).
        * src/plugins/NarrativeWeb.py


svn: r10357
2008-03-20 22:24:36 +00:00
Kees Bakker
5da7180dd9 Moved create_file() and create_link_file to NavWebReport.
Solved a problem with "CurrentSection" which wasn't set in a translated
environment.
Eliminated several options in BasePage, by referring to report.options
(to keep them in one place only).
Lots of other little changes.
        * src/plugins/NarrativeWeb.py


svn: r10333
2008-03-17 21:09:16 +00:00
Gary Burton
08d840311b Revert change made in revision 10298
svn: r10312
2008-03-14 23:50:54 +00:00
Kees Bakker
f637b709d6 The surname pages now have the proper SiteTitle. And the page title
looks better too, I think. (More testing is needed.)
Usage of variable names 'id' and 'type' is corrected.
        * src/plugins/NarrativeWeb.py


svn: r10310
2008-03-14 21:07:35 +00:00
Gary Burton
1464abffab Bug 1280 make sure source media pages are created before the gallery
svn: r10298
2008-03-13 23:29:01 +00:00
Kees Bakker
e32e602b50 Two small bugfixes found by pylint.
* src/plugins/NarrativeWeb.py


svn: r10296
2008-03-13 22:35:26 +00:00
Kees Bakker
a8a59c9f7c Major reorganisation of NarrativeWeb.py
Pass instance of NavWebReport down to BasePage instead of doing it by
many function arguments. There are still a few "TODO" and "FIXME" notes
in the code. At least one test succeeded to create exactly the same HTML
output. One test, what more do you need?
Pylint reports rating of 8.01/10, but I'm sure I can do better :-)
        * src/plugins/NarrativeWeb.py


svn: r10295
2008-03-13 22:28:22 +00:00
Kees Bakker
dfe4088d86 Remove marker argument of note.get().
Eliminate 'up' parameter of person_link().
        * src/plugins/NarrativeWeb.py


svn: r10294
2008-03-13 20:31:33 +00:00
Kees Bakker
b997fc211b Cleanup interface of BasePage.display_header and moving some attributes
around. Also deleted some unused variables.
        * src/plugins/NarrativeWeb.py


svn: r10271
2008-03-11 22:11:42 +00:00
Kees Bakker
c764b185cd Reorganized the functions that create file and directory names. Nothing
got broken, I hope. More changes to come.
        * src/plugins/NarrativeWeb.py


svn: r10270
2008-03-11 21:19:36 +00:00
Kees Bakker
7ea0f31341 Added space after commas to improve readability. This makes pylint
happier too. Started to add more comments here and there.
        * src/plugins/NarrativeWeb.py


svn: r10243
2008-03-09 20:12:56 +00:00
Kees Bakker
c7226e1c04 Corrected the path for somerights20.gif.
Removed all trailing whitespace.  Added a few spaces here and there to
improve readability.
        * src/plugins/NarrativeWeb.py


svn: r10225
2008-03-08 16:40:19 +00:00
Kees Bakker
18f5768c2d Changed the use of "main1.css" to _CSS_FILES[0][1] so that the filenames
are maintained in one place. Making the first entry the default.


svn: r10223
2008-03-08 11:48:53 +00:00