remove buggy 'is' clause
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 01 Oct 2010 13:57:39 +0200
changeset 238 48dd5b221f71
parent 237 c5fdcaa505f6
child 239 607876043cd6
remove buggy 'is' clause
views/__init__.py
--- a/views/__init__.py	Tue Sep 28 15:47:50 2010 +0200
+++ b/views/__init__.py	Fri Oct 01 13:57:39 2010 +0200
@@ -21,14 +21,14 @@
     def _sibling_entry(self, order, operator):
         if self.entity.entry_of:
             rql = ('Any B ORDERBY B %s LIMIT 1 '
-                   'WHERE B is BlogEntry, B entry_of BL, BL eid %%(blog)s, '
+                   'WHERE B entry_of BL, BL eid %%(blog)s, '
                    'B eid %s %%(eid)s')
             rset = self._cw.execute(rql % (order, operator),
                                     {'blog': self.entity.entry_of[0].eid,
                                      'eid': self.entity.eid})
         else:
             rql = ('Any B ORDERBY B %s LIMIT 1 '
-                   'WHERE B is BlogEntry, B eid %s %%(eid)s, NOT B entry_of BL')
+                   'WHERE B eid %s %%(eid)s, NOT B entry_of BL')
             rset = self._cw.execute(rql % (order, operator),
                                     {'eid': self.entity.eid})
         if rset: