Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2011-05-21 12:20:28 (GMT)
committer Sascha Silbe <silbe@activitycentral.com>2011-05-21 12:51:20 (GMT)
commit2937c3bd6347ee8e916a05bb18ef9bef914ed8bd (patch)
treea3dec6daf4958f442226456f7cc2c4e533c4c942 /model.py
parent93ec9dba8f98ad669d14f5aaed1879ab71c96287 (diff)
Fix overlong lines
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Diffstat (limited to 'model.py')
-rw-r--r--model.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/model.py b/model.py
index 852e8e8..504b84e 100644
--- a/model.py
+++ b/model.py
@@ -44,13 +44,11 @@ class Model(gobject.GObject):
index = self.data['shared_links'].index(item)
break
- self.data['shared_links'].insert(index,
- {'hash': sha.new(str(url)).hexdigest(),
- 'url': str(url), 'title': str(title),
- 'thumb': base64.b64encode(thumb),
- 'owner': str(owner),
- 'color': str(color),
- 'timestamp': float(timestamp)})
+ info = {'hash': sha.new(str(url)).hexdigest(), 'url': str(url),
+ 'title': str(title), 'thumb': base64.b64encode(thumb),
+ 'owner': str(owner), 'color': str(color),
+ 'timestamp': float(timestamp)}
+ self.data['shared_links'].insert(index, info)
self.emit('add_link', index)
def remove_link(self, hash):