Patch from Gary Burton to support shared events in the Narrative web report.
svn: r9197
This commit is contained in:
parent
bd5512f31f
commit
87416a3745
@ -1,3 +1,6 @@
|
|||||||
|
2007-10-16 Gary Burton <gary.burton@zen.co.uk>
|
||||||
|
* src/plugins/NarrativeWeb.py: 0001267: Web report and shared event
|
||||||
|
|
||||||
2007-10-16 Frederik De Richter <frederik.de.richter@googlemail.com>
|
2007-10-16 Frederik De Richter <frederik.de.richter@googlemail.com>
|
||||||
* src/plugins/rel_nl.py: new version
|
* src/plugins/rel_nl.py: new version
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ from DateHandler import displayer as _dd
|
|||||||
from DateHandler import parser as _dp
|
from DateHandler import parser as _dp
|
||||||
from gen.proxy import PrivateProxyDb
|
from gen.proxy import PrivateProxyDb
|
||||||
from gen.proxy import LivingProxyDb
|
from gen.proxy import LivingProxyDb
|
||||||
|
from gen.lib.eventroletype import EventRoleType
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -1916,7 +1917,7 @@ class IndividualPage(BasePage):
|
|||||||
of.write('</tr>\n</table>\n</div>\n')
|
of.write('</tr>\n</table>\n</div>\n')
|
||||||
|
|
||||||
def display_ind_events(self,of):
|
def display_ind_events(self,of):
|
||||||
evt_ref_list = self.person.get_primary_event_ref_list()
|
evt_ref_list = self.person.get_event_ref_list()
|
||||||
|
|
||||||
if not evt_ref_list:
|
if not evt_ref_list:
|
||||||
return
|
return
|
||||||
@ -1929,7 +1930,13 @@ class IndividualPage(BasePage):
|
|||||||
event = self.db.get_event_from_handle(event_ref.ref)
|
event = self.db.get_event_from_handle(event_ref.ref)
|
||||||
if event:
|
if event:
|
||||||
evt_name = str(event.get_type())
|
evt_name = str(event.get_type())
|
||||||
of.write('<tr><td class="field">%s</td>\n' % evt_name)
|
|
||||||
|
if event_ref.get_role() == EventRoleType.PRIMARY:
|
||||||
|
of.write('<tr><td class="field">%s</td>\n' % evt_name)
|
||||||
|
else:
|
||||||
|
of.write('<tr><td class="field">%s (%s)</td>\n' \
|
||||||
|
% (evt_name, event_ref.get_role()))
|
||||||
|
|
||||||
of.write('<td class="data">\n')
|
of.write('<td class="data">\n')
|
||||||
of.write(self.format_event(event))
|
of.write(self.format_event(event))
|
||||||
of.write('</td>\n')
|
of.write('</td>\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user