Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-09-28 17:48:53 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2011-09-29 11:52:29 (GMT)
commitd4a55ac6afd79769ef0f659e0c9098a4be3f55eb (patch)
tree5ee0e134d6afda2985f26a476c1151495d8c019d /model.py
parenta5f66d3bdaff78620ef5d3304bc575d749cfd474 (diff)
The pairkey must be a string
The grid is transfered when collaboration is used, and all the atributes of the grid must be strings, but was initialized with a integer. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'model.py')
-rw-r--r--model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.py b/model.py
index 63992a2..f212cbd 100644
--- a/model.py
+++ b/model.py
@@ -310,7 +310,7 @@ class Model(object):
for key in keys:
if i < psize:
elem = {}
- elem['pairkey'] = key
+ elem['pairkey'] = str(key)
elem['state'] = '0'
elem['ab'] = 'a'
if self.pairs[key].props.aimg != None:
@@ -324,7 +324,7 @@ class Model(object):
temp1.append(elem)
elem = {}
- elem['pairkey'] = key
+ elem['pairkey'] = str(key)
elem['state'] = '0'
elem['ab'] = 'b'
if self.pairs[key].props.bimg != None: