Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@somosazucar.org>2013-06-03 05:41:47 (GMT)
committer Sebastian Silva <sebastian@somosazucar.org>2013-06-03 05:41:47 (GMT)
commit1f337520f1ce47b3f6ab892e63377749b7c02a5f (patch)
tree1768f2d244d648bb7bf90af2a647ad4ad767dfce
parent0f1ebe30e90897f6ec56c3219a37d03b8afa254c (diff)
Make model work for offline case (guid in author name field)
-rw-r--r--sugar_network_webui/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network_webui/objects.py b/sugar_network_webui/objects.py
index ec4befe..1ebd4f9 100644
--- a/sugar_network_webui/objects.py
+++ b/sugar_network_webui/objects.py
@@ -46,7 +46,7 @@ class Object(object):
@property
def is_author(self):
- return _uid in [i.get('guid') for i in self['author']]
+ return _uid in [(i.get('guid') or i.get('name')) for i in self['author']]
def get(self, prop):
if prop == 'guid':