--- nfo/projects/netfraggle/bin/FraggleTopicFrame.py 2004/08/31 02:25:34 1.6 +++ nfo/projects/netfraggle/bin/FraggleTopicFrame.py 2004/09/15 22:31:27 1.7 @@ -1,7 +1,11 @@ #Boa:MDIChild:FraggleTopicFrame -# $Id: FraggleTopicFrame.py,v 1.6 2004/08/31 02:25:34 joko Exp $ +# $Id: FraggleTopicFrame.py,v 1.7 2004/09/15 22:31:27 xabbu Exp $ # $Log: FraggleTopicFrame.py,v $ +# Revision 1.7 2004/09/15 22:31:27 xabbu +# + in function OnUpdateButtonButton call to fraggleSync replaced with syncTopics +# + topics are being recieved from the server now +# # Revision 1.6 2004/08/31 02:25:34 joko # U removed FraggleTopicDetailFrame in favor of FraggleItemFrame and FraggleListFrame # U now clearing topicListBox before updating it @@ -76,12 +80,13 @@ def OnUpdateButtonButton(self, event): #event.Skip() - self.engine.fraggleSync() + self.engine.syncTopics() topics = self.engine.getTopics() + #print topics self.topicListBox.Clear() i = 0 for topic in topics: - self.topicListBox.Append(topic['name'], i) + self.topicListBox.Append(topics[topic], i) i = i + 1 def OnTopicListBoxListboxDclick(self, event): @@ -101,13 +106,10 @@ # resolve associated topic entry topics = self.engine.getTopics() - title = topics[seldata]['name'] - result = topics[seldata]['result'] + title = topics[str(seldata)] + #print title - if result == 'item': - frame = FraggleItemFrame.create(self.parent) - elif result == 'list': - frame = FraggleListFrame.create(self.parent) + frame = FraggleListFrame.create(self.parent) frame.SetName(str(seldata)) frame.SetTitle(title)