home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- ObjectsStore={}
-
- StoreIndex=0 # Que no se me olvide guardar este valor al guardar partida
-
-
- def GetNewId():
- global StoreIndex
-
- StoreIndex=StoreIndex+1
- key=str(StoreIndex)
- while ObjectsStore.has_key(key):
- StoreIndex=StoreIndex+1
- key=str(StoreIndex)
-
- ## print "GetNewId()",key
- return key
-
-
- def CheckStore():
- for i in ObjectsStore.keys():
- try:
- obj=ObjectsStore[i]
- ret=obj.persistent_check()
- if not ret:
- del ObjectsStore[i]
- except AttributeError:
- pass
- except TypeError:
- pass
-