[mod] yams monkey patching has been backported to yams itself

authorLaurent Peuch <cortex@worlddomination.be>
changeset42dc973f01f7
branchdefault
phasedraft
hiddenyes
parent revision#1b13c5effaee [pyramid,test] remove tests obsoleted by a17cbf539a69
child revision<not specified>
files modified by this revision
cubicweb/schema.py
# HG changeset patch
# User Laurent Peuch <cortex@worlddomination.be>
# Date 1587570910 -7200
# Wed Apr 22 17:55:10 2020 +0200
# Node ID 42dc973f01f7086068f075bf653f3f4da6c2929d
# Parent 1b13c5effaee8f489e0884546529dbcf26a2b22c
[mod] yams monkey patching has been backported to yams itself

diff --git a/cubicweb/schema.py b/cubicweb/schema.py
@@ -96,14 +96,10 @@
1                        'StaticVocabularyConstraint',
2                        'RQLVocabularyConstraint')
3 
4  _LOGGER = getLogger('cubicweb.schemaloader')
5 
6 -# entity and relation schema created from serialized schema have an eid
7 -ybo.ETYPE_PROPERTIES += ('eid',)
8 -ybo.RTYPE_PROPERTIES += ('eid',)
9 -
10 
11  def build_schema_from_namespace(items):
12      schema = CubicWebSchema('noname')
13      fill_schema_from_namespace(schema, items, register_base_types=False)
14      return schema