Mark SEDAAnyEntity as abstract
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Aug 2016 10:54:44 +0200
changeset 1502 aadda8e00ec8
parent 1501 ac389c41589c
child 1547 184733f1dfe8
Mark SEDAAnyEntity as abstract The purpose wasn't to replace the default AnyEntity implememtation... Closes #14787888
entities/generated.py
xsd2entities.py
--- a/entities/generated.py	Thu Aug 25 10:04:45 2016 +0200
+++ b/entities/generated.py	Thu Aug 25 10:54:44 2016 +0200
@@ -17,7 +17,9 @@
 
 from cubicweb.entities import AnyEntity, fetch_config
 
+
 class SEDAAnyEntity(AnyEntity):
+    __abstract__ = True
     value_attr = None
 
     def dc_title(self):
--- a/xsd2entities.py	Thu Aug 25 10:04:45 2016 +0200
+++ b/xsd2entities.py	Thu Aug 25 10:54:44 2016 +0200
@@ -32,7 +32,9 @@
 
     def _generate(self, mapping, stream):
         stream.write('from cubicweb.entities import AnyEntity, fetch_config\n\n')
-        stream.write('''class SEDAAnyEntity(AnyEntity):
+        stream.write('''
+class SEDAAnyEntity(AnyEntity):
+    __abstract__ = True
     value_attr = None
 
     def dc_title(self):