3108: Cannot iterate through/with popup menu on active person's individual events\n and missing embedlist method

svn: r12829
This commit is contained in:
Benny Malengier 2009-07-21 13:27:41 +00:00
parent f979f8ee63
commit b59199e3c3
2 changed files with 10 additions and 1 deletions

View File

@ -477,3 +477,12 @@ class EmbeddedList(ButtonTab):
def post_rebuild(self):
pass
def rebuild_callback(self):
"""
The view must be remade when data changes outside this tab.
Use this method to connect to after a db change. It makes sure the
data is obtained again from db and the view rebuild
"""
self.changed = True
self.rebuild()

View File

@ -204,7 +204,7 @@ class EventEmbedList(GroupEmbeddedList):
def get_popup_menu_items(self):
if self._tmpgroup == self._WORKGROUP:
GroupEmbeddedList.get_popup_menu_items(self)
return GroupEmbeddedList.get_popup_menu_items(self)
else:
return [
(True, True, gtk.STOCK_ADD, self.add_button_clicked),