[schemas] make CWEType.final default to False (closes #5049201)
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 31 Oct 2014 17:17:26 +0100
changeset 10316 4ce8b8437838
parent 10315 0f3489d622ba
child 10317 b81adb5e32f9
[schemas] make CWEType.final default to False (closes #5049201)
misc/migration/3.21.0_Any.py
schemas/bootstrap.py
--- a/misc/migration/3.21.0_Any.py	Fri Apr 04 14:49:18 2014 +0200
+++ b/misc/migration/3.21.0_Any.py	Fri Oct 31 17:17:26 2014 +0100
@@ -17,3 +17,5 @@
 sql('DELETE FROM entities WHERE eid < 0')
 
 commit()
+
+sync_schema_props_perms('CWEType')
--- a/schemas/bootstrap.py	Fri Apr 04 14:49:18 2014 +0200
+++ b/schemas/bootstrap.py	Fri Oct 31 17:17:26 2014 +0100
@@ -38,7 +38,7 @@
     description = RichString(internationalizable=True,
                              description=_('semantic description of this entity type'))
     # necessary to filter using RQL
-    final = Boolean(description=_('automatic'))
+    final = Boolean(default=False, description=_('automatic'))
 
 
 class CWRType(EntityType):