no need to get back EntityAdapter.__select__
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 06 Aug 2010 10:04:46 +0200
changeset 222 95ad22474c85
parent 221 1f8273d23dae
child 223 729252151dea
no need to get back EntityAdapter.__select__
entities.py
--- a/entities.py	Fri Aug 06 10:03:04 2010 +0200
+++ b/entities.py	Fri Aug 06 10:04:46 2010 +0200
@@ -15,7 +15,7 @@
 
 class BlogIFeedAdapter(EntityAdapter):
     __regid__ = 'IFeed'
-    __select__ = EntityAdapter.__select__ & is_instance('Blog')
+    __select__ = is_instance('Blog')
 
     def rss_feed_url(self):
         if self.entity.rss_url:
@@ -28,7 +28,7 @@
 
 class BlogISiocContainerAdapter(EntityAdapter):
     __regid__ = 'ISIOCContainer'
-    __select__ = EntityAdapter.__select__ & is_instance('Blog')
+    __select__ = is_instance('Blog')
 
     def isioc_type(self):
         return 'Weblog'
@@ -57,7 +57,7 @@
 
 class BlogEntryICalendarableAdapter(EntityAdapter):
     __regid__ = 'ICalendarable'
-    __select__ = EntityAdapter.__select__ & is_instance('BlogEntry')
+    __select__ = is_instance('BlogEntry')
 
     @property
     def start(self):
@@ -70,7 +70,7 @@
 
 class BlogEntryICalendarViewsAdapter(EntityAdapter):
     __regid__ = 'ICalendarViews'
-    __select__ = EntityAdapter.__select__ & is_instance('BlogEntry')
+    __select__ = is_instance('BlogEntry')
 
     def matching_dates(self, begin, end):
         """calendar views interface"""
@@ -85,7 +85,7 @@
 
 class BlogEntryISiocItemAdapter(EntityAdapter):
     __regid__ = 'ISIOCItem'
-    __select__ = EntityAdapter.__select__ & is_instance('BlogEntry')
+    __select__ = is_instance('BlogEntry')
 
     def isioc_content(self):
         return self.entity.content
@@ -106,7 +106,7 @@
 
 class BlogEntryIPrevNextAdapter(EntityAdapter):
     __regid__ = 'IPrevNext'
-    __select__ = EntityAdapter.__select__ & is_instance('BlogEntry')
+    __select__ = is_instance('BlogEntry')
 
     def next_entity(self):
         return self._sibling_entry('ASC', '>')