# HG changeset patch # User Laure Bourgois # Date 1238599540 -7200 # Node ID 7fa66717175b713681f71877cd6b5c372d3e1968 # Parent 894685124c68fcefd6317f95fe3b4a4ebb7f5e5b fixing isioc_type comment adding method (from existing cube blog code) to ISiocItem (isioc_replies, isioc_topics) adding method (from existing cube blog code) to ISiocContainer (isioc_items) diff -r 894685124c68 -r 7fa66717175b interfaces.py --- a/interfaces.py Fri Mar 20 15:08:18 2009 +0100 +++ b/interfaces.py Wed Apr 01 17:25:40 2009 +0200 @@ -246,12 +246,26 @@ """return content entity""" def isioc_container(self): - """return container entity""" + """return container entity""" + + def isioc_type(self): + """return container type (post, BlogPost, MailMessage)""" + + def isioc_replies(self): + """return replies items""" + + def isioc_topics(self): + """return topics items""" class ISiocContainer(Interface): """interface for entities (which are container in sioc specification) with sioc views""" def isioc_type(self): - """return container type (forum, weblog, mailinglist)""" + """return container type (forum, Weblog, MailingList)""" + + def isioc_items(self): + """return contained items""" + +