81 |
self.Destroy() |
self.Destroy() |
82 |
event.Skip() |
event.Skip() |
83 |
|
|
84 |
def load_content(self): |
def load_content(self, topicmeta = {}): |
85 |
topicid = int(self.GetName()) |
if topicmeta: |
86 |
topicdata = self.engine.query_remote(topicid) |
self.topicmeta = topicmeta |
87 |
|
else: |
88 |
|
self.topicid = int(self.GetName()) |
89 |
|
self.topicmeta = self.engine.getTopicById(self.topicid) |
90 |
|
self.payload = self.engine.query_remote(self.topicmeta) |
91 |
|
|
92 |
if topicdata: |
if self.payload: |
93 |
self.styledTextContent.SetText(topicdata['content']) |
self.styledTextContent.SetText(self.payload['content']) |
94 |
self.textCtrlKeyname.SetValue(topicdata['keyname']) |
self.textCtrlKeyname.SetValue(self.payload['keyname']) |
95 |
self.textCtrlDescription.SetValue(topicdata['description']) |
self.textCtrlDescription.SetValue(self.payload['description']) |
96 |
|
|
97 |
def OnButtonRefreshButton(self, event): |
def OnButtonRefreshButton(self, event): |
98 |
event.Skip() |
event.Skip() |