server/hooksmanager.py
branchtls-sprint
changeset 712 ce49e3885453
parent 692 800592b8d39b
child 719 2a610efe21ce
--- a/server/hooksmanager.py	Tue Feb 17 22:25:16 2009 +0100
+++ b/server/hooksmanager.py	Tue Feb 17 22:43:59 2009 +0100
@@ -180,13 +180,13 @@
 #         self.register_hook(tidy_html_fields('before_add_entity'), 'before_add_entity', '')
 #         self.register_hook(tidy_html_fields('before_update_entity'), 'before_update_entity', '')
             
-from cubicweb.vregistry import autoselectors
 from cubicweb.selectors import yes
 from cubicweb.common.appobject import AppObject
 from cubicweb.common.registerers import yes_registerer
 
-class autoid(autoselectors):
+class autoid(type):
     """metaclass to create an unique 'id' attribute on the class using it"""
+    # XXX is this metaclass really necessary ?
     def __new__(mcs, name, bases, classdict):
         cls = super(autoid, mcs).__new__(mcs, name, bases, classdict)
         cls.id = str(id(cls))