OSDN Git Service

Use bbs type widely.
[fukui-no-namari/fukui-no-namari.git] / src / FukuiNoNamari / board_window.py
index d7429ee..f8154e5 100644 (file)
@@ -350,8 +350,7 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
             self.merge_remote_subjecttxt(datalist)
             gobject.idle_add(self.update_datastore, datalist)
 
-        sbj_path = misc.get_board_subjecttxt_path(
-            self.bbs_type.bbs_type, self.bbs_type.board)
+        sbj_path = misc.get_board_subjecttxt_path(self.bbs_type)
         sbj_exists = os.path.exists(sbj_path)
 
         if update or not sbj_exists:
@@ -363,8 +362,7 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
 
     def save(self):
         try:
-            states_path = misc.get_board_states_path(
-                self.bbs_type.bbs_type, self.bbs_type.board)
+            states_path = misc.get_board_states_path(self.bbs_type)
             dirname = os.path.dirname(states_path)
 
             # save only if board dir exists.
@@ -431,8 +429,7 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData):
             except:
                 traceback.print_exc()
 
-            states_path = misc.get_board_states_path(
-                self.bbs_type.bbs_type, self.bbs_type.board)
+            states_path = misc.get_board_states_path(self.bbs_type)
             if os.path.exists(states_path):
                 sort_column_name = "num"
                 sort_reverse = False