Refine dump_notes usage
svn: r15194
This commit is contained in:
parent
4f648c3c7e
commit
b38c9e5144
@ -338,7 +338,7 @@ class BasePage(object):
|
||||
("AttrValue", attr.get_value() ) ]
|
||||
|
||||
# get attribute note list
|
||||
notelist = self.dump_notes(attr.get_note_list() ) or " "
|
||||
notelist = self.dump_notes(attr.get_note_list() )
|
||||
attr_data_row.append(("AttrNotes", notelist))
|
||||
|
||||
if showsrc:
|
||||
@ -443,7 +443,7 @@ class BasePage(object):
|
||||
"""
|
||||
|
||||
if not notelist:
|
||||
return " "
|
||||
return Html("p")
|
||||
db = self.report.database
|
||||
|
||||
# begin unordered list
|
||||
@ -505,7 +505,7 @@ class BasePage(object):
|
||||
if notelist:
|
||||
htmllist = self.dump_notes( notelist )
|
||||
else:
|
||||
htmllist = " "
|
||||
htmllist = Html("p")
|
||||
|
||||
# if the event or event reference has a attributes attached to it,
|
||||
# get the text and format it correctly
|
||||
@ -520,7 +520,7 @@ class BasePage(object):
|
||||
#also output notes attached to the attributes
|
||||
notelist = attr.get_note_list()
|
||||
if notelist:
|
||||
htmllist.extend ( self.dump_notes( notelist ) or " " )
|
||||
htmllist.extend (self.dump_notes( notelist ))
|
||||
|
||||
trow += Html("td", htmllist, class_ = "ColumnNotes")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user