Commits

Alexander Schremmer committed a050db7

Fix refresh bug, fix pickle bugs.

Comments (0)

Files changed (3)

domination/gameengine.py

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

domination/static/game.js

     $.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);
       }
     });
   };

domination/tools.py

             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)