Esempio n. 1
0
 def saveGame(self, game, position=None):
     if not game.isChanged():
         return
     if game.uri and isWriteable(game.uri):
         self.saveGameSimple(game.uri, game, position=position)
     else:
         return self.saveGameAs(game, position=position)
Esempio n. 2
0
def saveGame(game):
    if not game.isChanged():
        return
    if game.uri and isWriteable(game.uri):
        saveGameSimple(game.uri, game)
    else:
        return saveGameAs(game)
Esempio n. 3
0
 def saveGame(self, game, position=None):
     if not game.isChanged():
         return
     if game.uri and isWriteable(game.uri):
         self.saveGameSimple(game.uri, game, position=position)
     else:
         return self.saveGameAs(game, position=position)
Esempio n. 4
0
def saveGame (game):
    if not game.isChanged():
        return
    if game.uri and isWriteable (game.uri):
        saveGameSimple (game.uri, game)
    else:
        return saveGameAs (game)
Esempio n. 5
0
 def isChanged(self):
     if self.ply == 0:
         return False
     if self.needsSave:
         return True
     if not self.uri or not isWriteable(self.uri):
         return True
     return False
Esempio n. 6
0
 def isChanged(self):
     if self.ply == 0:
         return False
     if self.needsSave:
         return True
     if not self.uri or not isWriteable(self.uri):
         return True
     return False