On 6 Nov 2012, at 13:44, Benny Malengier wrote:Ok,
A big work you take on yourself.
As this would be big, it would not be for gramps34 however, so I suggest you stick to trunk, and for trunk it could be downloadable plugin if you want to offer it there.
Sorry, I didn't make it clear. I am not doing the full GEPS 022, just a small amount of code movement, leaving the functionality effectively unchanged. Believe me I am very cautious about re-writing working code. I am trying to help maintain Narrative Web, and there is no point in making a downloadable plugin when the existing NarWeb needs to be maintained as it is used so much.Hence, I would like to leave it in gramps34, where I am testing it now. I don't have any way to test in trunk.As I say, it needs to be maintained in gramps34.
Anyway, it is a far smaller change than the citation change, which I did largely myself (except for the two level tree model).
Tim.Benny2012/11/6 Tim Lyons <email@example.com>
I have started to work on GEPS 022: Narrative Website Refactor for Gramps34
and trunk, so I would appreciate it if you did not commit changes to
Narrative Web for a little while, till I have updated the code structure.
What I am doing at the moment is re-ordering the code in Narrative Web so
that the code that generates related pages is together, and changing it to
classes that contain an outline for a two pass process. My intention is that
the underlying code is not changed at present, just the structure.
I will let you know when I have made the changes so you can commit again.
I think that there is a problem in implementing the proposed refactor in
GEPS 022: Narrative Website Refactor. I don't think it is possible to "move
each major part of NarrWeb into its own Web Report that can be run as a
At present, the only way the major parts of NarrWeb know which object to
generate is by being told from a superior part. For example, events pages
are generated for events that are contained in the Person or Family page.
(The same applies for all components like Families, Sources, Media, etc.
[with the possible exception of Person]).
The Person pages could be run "as a stand-alone webreport" by generating
pages for all the filtered people.
If we tried to do the same thing for other pages, for example Families, a
stand-alone" Families webreport would need to loop through all filtered
Persons and find any Families that were linked from those people. Similarly,
a stand-alone Events webreport would need to loop through all filtered
persons, and get all events and then find all related Families, and get all
their events. While I suppose this would be possible, it would be terribly
inefficient (because of the number of times each Person, Family, Event etc
would need to be accessed). It would also violate separation of concerns,
because such a stand-alone Events webreport would end up having to know
about exactly which events were displayed by the Person webreport. [In the
case of Events, you can object that all events need to be displayed, but in
other cases, such as Media or Sources, the existing Person and Families
webpages do not display ALL such objects, and I suppose you would not want
to display objects in the Media or Sources tab that were not shown in some
Please let me know if I have missed some approach that would allow
View this message in context: http://gramps.1791082.n4.nabble.com/Please-don-t-commit-Narrative-Web-and-GEPS-022-Narrative-Website-Refactor-tp4657274.html
Sent from the GRAMPS - Dev mailing list archive at Nabble.com.
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
Gramps-devel mailing list