no more used
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 Aug 2009 10:00:30 +0200
changeset 53 fd153ecf016d
parent 52 bc9b616aa2b7
child 54 d03369f67a1d
no more used
__init__.py
--- a/__init__.py	Mon Aug 10 10:00:14 2009 +0200
+++ b/__init__.py	Mon Aug 10 10:00:30 2009 +0200
@@ -13,8 +13,6 @@
     # cubicweb.web not available
     pass
 else:
-    from cubicweb.common import mixins
-
     def kwvocab_from_rset(rset):
         vocabbyscheme = {}
         for e in rset.entities():
@@ -33,24 +31,3 @@
         return  'eid', vocab
 
     FACETTES.add( ('applied_to', 'object', 'name', kwvocab_from_rset) )
-
-
-    class ClassifiableMixIn(object):
-        """base mixin providing helper methods for classifiable entities.
-        This mixin will be automatically set on class supporting the 'applied_to'
-        object relation
-        """
-        def filterform_vocabulary(self, rtype, x, var, rqlst, args, cachekey):
-            """vocabulary method controling generic table filter form
-
-            see AnyEntity.filterform_vocabulary docstring for more information
-            """
-            from cubicweb.web.views.searchrestriction import insert_attr_select_relation
-            if x == 'object' and rtype == 'applied_to':
-                rql = insert_attr_select_relation(rqlst, var, rtype, 'name')
-                rset = self.req.execute(rql, args, cachekey)
-                return kwvocab_from_rset(rset)
-            return super(ClassifiableMixIn, self).filterform_vocabulary(
-                rtype, x, var, rqlst, args, cachekey)
-
-    mixins.MI_REL_TRIGGERS[('applied_to', 'object')] = ClassifiableMixIn