# HG changeset patch # User Laure Bourgois # Date 1235752364 -3600 # Node ID 5f1ff5b6907ae4f62e6520d81bb668166b386c55 # Parent c10485f92dd6684ac4b7d87b49444117c135c954 ISiocItem is an interface that is implemented by 'post' entities (in sioc specification) i.e blogentry, mail ... IsiocContainer is an interface that is implemented by 'container' entities (see sioc specification) i.e blog, mailthread ... diff -r c10485f92dd6 -r 5f1ff5b6907a interfaces.py --- a/interfaces.py Fri Feb 27 17:29:08 2009 +0100 +++ b/interfaces.py Fri Feb 27 17:32:44 2009 +0100 @@ -238,7 +238,37 @@ def rss_feed_url(self): """return an url which layout sub-entities item """ -class ISIOC(Interface): - """interface for entities with sioc views""" +class ISiocItem(Interface): + """interface for entities (which are item + in sioc specification) with sioc views""" + + def isioc_item_creator(self): + """return creator entity""" + + def isioc_item_content(self): + """return content entity""" + + def isioc_item_container(self): + """return container entity""" + + def isioc_item_get_reply(self): + """return list of item reply""" + + def isioc_item_creation_date(self): + """return creation date entity""" + + def item_modification_date(self): + """return modification date""" - +class ISiocContainer(Interface): + """interface for entities (which are container + in sioc specification) with sioc views""" + + def isioc_container_type(self): + """return container type (forum, weblog, mailinglist)""" + + def isioc_container_creation_date(self): + """return creation date entity""" + + def isico_container_modification_date(self): + """return modification date"""