home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Lib / ObjStore.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-10-27  |  844 b   |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. ObjectsStore = { }
  5. StoreIndex = 0
  6.  
  7. def GetNewId():
  8.     global StoreIndex, StoreIndex
  9.     StoreIndex = StoreIndex + 1
  10.     key = str(StoreIndex)
  11.     while ObjectsStore.has_key(key):
  12.         StoreIndex = StoreIndex + 1
  13.         key = str(StoreIndex)
  14.     return key
  15.  
  16.  
  17. def CheckStore():
  18.     for i in ObjectsStore.keys():
  19.         
  20.         try:
  21.             obj = ObjectsStore[i]
  22.             ret = obj.persistent_check()
  23.             if not ret:
  24.                 del ObjectsStore[i]
  25.         except AttributeError:
  26.             0
  27.             0
  28.             ObjectsStore.keys()
  29.         except TypeError:
  30.             ObjectsStore.keys()
  31.             ObjectsStore.keys()
  32.         except:
  33.             0
  34.  
  35.     
  36.  
  37.