fix isioc_container implementation: shouldn't return a list
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Sep 2010 09:39:44 +0200
changeset 228 3dc7e3415005
parent 227 3f6c3b5c133f
child 229 bbc7dce64608
fix isioc_container implementation: shouldn't return a list
entities.py
--- a/entities.py	Tue Aug 31 14:51:59 2010 +0200
+++ b/entities.py	Thu Sep 09 09:39:44 2010 +0200
@@ -89,7 +89,7 @@
         return self.entity.content
 
     def isioc_container(self):
-        return self.entity.entry_of
+        return self.entity.entry_of and self.entity.entry_of[0] or None
 
     def isioc_type(self):
         return 'BlogPost'