ISiocItem is an interface that is implemented by 'post' entities (in sioc specification) i.e blogentry, mail ...
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Fri, 27 Feb 2009 17:32:44 +0100
changeset 990 5f1ff5b6907a
parent 989 c10485f92dd6
child 991 746fed01d1e0
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 ...
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"""