diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-09-28 17:48:53 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-09-29 11:52:29 (GMT) |
commit | d4a55ac6afd79769ef0f659e0c9098a4be3f55eb (patch) | |
tree | 5ee0e134d6afda2985f26a476c1151495d8c019d /model.py | |
parent | a5f66d3bdaff78620ef5d3304bc575d749cfd474 (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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |