cleanup, avoid spurious warning tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 07 Apr 2009 17:17:55 +0200
branchtls-sprint
changeset 1264 fe2934a7df7f
parent 1263 01152fffd593
child 1265 e5cdd5c0dce3
cleanup, avoid spurious warning
entity.py
--- a/entity.py	Tue Apr 07 09:30:23 2009 +0200
+++ b/entity.py	Tue Apr 07 17:17:55 2009 +0200
@@ -154,14 +154,15 @@
     __metaclass__ = metaentity
     __registry__ = 'etypes'
     __select__ = yes()
-    widgets = {}
-    rtags = None
+
+    # class attributes that must be set in class definition 
     id = None
-    e_schema = None
-    eid = None
     rest_attr = None
     fetch_attrs = None
     skip_copy_for = ()
+    # class attributes set automatically at registration time
+    e_schema = None
+    
     @classmethod
     def registered(cls, registry):
         """build class using descriptor at registration time"""