--- nfo/projects/netfraggle/bin/FraggleItemFrame.py 2004/08/31 02:21:04 1.1 +++ nfo/projects/netfraggle/bin/FraggleItemFrame.py 2004/08/31 09:35:32 1.2 @@ -81,14 +81,18 @@ self.Destroy() event.Skip() - def load_content(self): - topicid = int(self.GetName()) - topicdata = self.engine.query_remote(topicid) + def load_content(self, topicmeta = {}): + if topicmeta: + self.topicmeta = topicmeta + else: + self.topicid = int(self.GetName()) + self.topicmeta = self.engine.getTopicById(self.topicid) + self.payload = self.engine.query_remote(self.topicmeta) - if topicdata: - self.styledTextContent.SetText(topicdata['content']) - self.textCtrlKeyname.SetValue(topicdata['keyname']) - self.textCtrlDescription.SetValue(topicdata['description']) + if self.payload: + self.styledTextContent.SetText(self.payload['content']) + self.textCtrlKeyname.SetValue(self.payload['keyname']) + self.textCtrlDescription.SetValue(self.payload['description']) def OnButtonRefreshButton(self, event): event.Skip()