1. Alexander Schremmer
  2. domination

Commits

Alexander Schremmer  committed a050db7

Fix refresh bug, fix pickle bugs.

  • Participants
  • Parent commits dd16db2
  • Branches default

Comments (0)

Files changed (3)

File domination/gameengine.py

View file
  • Ignore whitespace
 
     def __getstate__(self):
         d = self.__dict__.copy()
-        del d['_hooks']
+        if d.get("_hooks", None) is not None:
+            del d['_hooks']
         return d
 
     @property

File domination/static/game.js

View file
  • Ignore whitespace
     $.getJSON($SCRIPT_ROOT + '/game/check_seqno/' + game_name, {seqno: seqno}, function(data) {
       if (!(data === null) && do_page_refresh) {
         document.location = document.location;
-        window.setTimeout(check_and_update, 100);
       }
     });
   };

File domination/tools.py

View file
  • Ignore whitespace
             return self % self.parameters
         return t.ugettext(self[:]) % self.parameters
 
+    def __newargs__(self):
+        return (unicode.__unicode__(self), self.parameters)
+
 
 def _(string, parameters=()):
     return Translatable(string, parameters)