entities/__init__.py
changeset 2658 5535857eeaa5
parent 2613 5e19c2bb370e
child 2793 bfb21f7a0d13
child 3348 97dca770c028
--- a/entities/__init__.py	Mon Aug 03 15:16:47 2009 +0200
+++ b/entities/__init__.py	Mon Aug 03 15:42:47 2009 +0200
@@ -14,7 +14,6 @@
 
 from cubicweb import Unauthorized, typed_eid
 from cubicweb.entity import Entity
-from cubicweb.utils import dump_class
 
 from cubicweb.interfaces import IBreadCrumbs, IFeed
 
@@ -26,19 +25,6 @@
     id = 'Any'
     __implements__ = (IBreadCrumbs, IFeed)
 
-    @classmethod
-    def selected(cls, etype):
-        """the special Any entity is used as the default factory, so
-        the actual class has to be constructed at selection time once we
-        have an actual entity'type
-        """
-        if cls.id == etype:
-            return cls
-        usercls = dump_class(cls, etype)
-        usercls.id = etype
-        usercls.__initialize__()
-        return usercls
-
     fetch_attrs = ('modification_date',)
     @classmethod
     def fetch_order(cls, attr, var):