OSDN Git Service

Notify thread idx updated to board window.
[fukui-no-namari/fukui-no-namari.git] / src / Hage1 / board_window.py
index 367b4d1..b711d60 100644 (file)
@@ -259,3 +259,17 @@ class WinWrap:
         print "end"
         time_end = time.time()
         print time_end - time_start
+
+    def on_thread_idx_updated(self, thread, idx_dic):
+        if not thread or not idx_dic:
+            return
+
+        model = self.treeview.get_model()
+        if model:
+            idx_dic["id"] = thread
+            try:
+                idx_dic["lastModified"] =  misc.httpdate_to_secs(
+                    idx_dic["lastModified"])
+            except ValueError:
+                idx_dic["lastModified"] = 0
+            model.modify_row(idx_dic)