* src/plugins/NarrativeWeb.py: show url when no description (#0000319)

svn: r7241
This commit is contained in:
Brian Matherly 2006-08-23 01:09:54 +00:00
parent 55281585e5
commit deac55eafb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2006-08-22 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: show url when no description (#0000319)
2006-08-22 Alex Roitman <shura@gramps-project.org>
* src/Filters/Rules/Person/_IsDescendantFamilyOf.py: Rewrite.
* src/Filters/_FilterParser.py (startElement): Upgrade existing

View File

@ -434,6 +434,8 @@ class BasePage:
for url in urllist:
uri = url.get_path()
descr = url.get_description()
if not descr:
descr = uri
of.write('<tr><td class="field">%d.</td>' % index)
of.write('<td class="data"><a href="%s">%s</a>' % (uri,descr))
of.write('</td></tr>\n')
@ -2365,7 +2367,7 @@ class WebReportOptions(ReportOptions):
df = GenericFilter()
df.set_name(_("Descendant Families of %s") % name)
df.add_rule(Rules.Person.IsDescendantFamilyOf([gramps_id]))
df.add_rule(Rules.Person.IsDescendantFamilyOf([gramps_id,1]))
ans = GenericFilter()
ans.set_name(_("Ancestors of %s") % name)