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

authorLaurent Peuch <cortex@worlddomination.be>
changeset3ed2f6fb4f37
branchdefault
phasedraft
hiddenno
parent revision#2f3cb7f5a92f chore(flake8): update flake8-ok-files.txt with files that passes flake8 test
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 3ed2f6fb4f37c6dedd897579a99702f724030962
# Parent 2f3cb7f5a92f4c3a70a5abf30227d6228b614804
[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