2007-08-05 Don Allingham <don@gramps-project.org>
* src/GrampsDbUtils/_WriteGedcom.py: start of refactoring * src/Bookmarks.py: Don't rewrite list svn: r8801
This commit is contained in:
parent
84fc4b33f3
commit
fc6910bd1b
@ -1,3 +1,7 @@
|
|||||||
|
2007-08-05 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/GrampsDbUtils/_WriteGedcom.py: start of refactoring
|
||||||
|
* src/Bookmarks.py: Don't rewrite list
|
||||||
|
|
||||||
2007-08-04 Stephane Charette <stephanecharette@gmail.com>
|
2007-08-04 Stephane Charette <stephanecharette@gmail.com>
|
||||||
* src/plugins/NarrativeWeb.py: use _dd.display() to format the date
|
* src/plugins/NarrativeWeb.py: use _dd.display() to format the date
|
||||||
used in the string "Generated by Gramps on <...>"
|
used in the string "Generated by Gramps on <...>"
|
||||||
|
@ -135,7 +135,6 @@ class Bookmarks :
|
|||||||
if len(self.bookmarks.get()) > 0:
|
if len(self.bookmarks.get()) > 0:
|
||||||
text.write('<placeholder name="GoToBook">')
|
text.write('<placeholder name="GoToBook">')
|
||||||
|
|
||||||
new_list = []
|
|
||||||
for item in self.bookmarks.get():
|
for item in self.bookmarks.get():
|
||||||
try:
|
try:
|
||||||
label, obj = self.make_label(item)
|
label, obj = self.make_label(item)
|
||||||
@ -144,11 +143,9 @@ class Bookmarks :
|
|||||||
actions.append((action_id, None, label, None, None, func))
|
actions.append((action_id, None, label, None, None, func))
|
||||||
text.write('<menuitem action="%s"/>' % action_id)
|
text.write('<menuitem action="%s"/>' % action_id)
|
||||||
count += 1
|
count += 1
|
||||||
new_list.append(item)
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
text.write('</placeholder>')
|
text.write('</placeholder>')
|
||||||
self.bookmarks.set(new_list)
|
|
||||||
|
|
||||||
text.write(BTM)
|
text.write(BTM)
|
||||||
self.action_group.add_actions(actions)
|
self.action_group.add_actions(actions)
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user