OSDN Git Service

Change the filename, windowlist.py to session.py
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 23 Aug 2006 12:02:38 +0000 (21:02 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Wed, 23 Aug 2006 12:02:38 +0000 (21:02 +0900)
src/Hage1/board_window.py
src/Hage1/session.py [moved from src/Hage1/windowlist.py with 100% similarity]
src/Hage1/thread_window.py

index 0d5b8fa..9871b89 100644 (file)
@@ -29,7 +29,7 @@ import misc
 from threadlistmodel import ThreadListModel
 from BbsType import bbs_type_judge_uri
 
-import windowlist
+import session
 
 GLADE_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                          "..", "data")
@@ -39,14 +39,14 @@ def open_board(uri):
     if not uri:
         raise ValueError, "parameter must not be empty"
 
-    winwrap = windowlist.get_window(uri)
+    winwrap = session.get_window(uri)
     if winwrap:
         # already opened
         winwrap.window.present()
         pass
     else:
         win_wrap = WinWrap(uri)
-        windowlist.window_created(uri, win_wrap)
+        session.window_created(uri, win_wrap)
 
 
 class WinWrap:
similarity index 100%
rename from src/Hage1/windowlist.py
rename to src/Hage1/session.py
index 4af62ae..98177e1 100644 (file)
@@ -29,7 +29,7 @@ import misc
 import datfile
 import barehtmlparser
 import idxfile
-import windowlist
+import session
 import board_window
 
 GLADE_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
@@ -40,14 +40,14 @@ def open_thread(uri):
     if not uri:
         raise ValueError, "parameter must not be empty"
 
-    winwrap = windowlist.get_window(uri)
+    winwrap = session.get_window(uri)
     if winwrap:
         # already opened
         winwrap.window.present()
         pass
     else:
         win_wrap = WinWrap(uri)
-        windowlist.window_created(uri, win_wrap)
+        session.window_created(uri, win_wrap)
 
 
 class WinWrap:
@@ -152,7 +152,7 @@ class WinWrap:
                    "lastModified": lastmod, "etag": etag}
             idxfile.save_idx(self.bbs, self.board, self.thread, idx_dic)
 
-            windowlist.thread_idx_updated(
+            session.thread_idx_updated(
                 self.bbs_type.get_thread_uri(), idx_dic)
 
     def update(self, widget=None):