Skip to content
Snippets Groups Projects

chore(pkg): new patch release (0.2.12)

Merged Nicola Spanti requested to merge topic/0.2/version-0-2-12 into branch/0.2
All threads resolved!
Compare and Show latest version
8 files
+ 49
16
Compare changes
  • Side-by-side
  • Inline
Files
8
# copyright 2016-2023 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact https://www.logilab.fr -- mailto:contact@logilab.fr
# copyright 2016-2024 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr -- mailto:contact@logilab.fr
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
@@ -19,7 +19,10 @@
import jsl
from cubicweb.schema import META_RTYPES
from cubicweb_web.view import Component
try:
from cubicweb_web.view import Component
except ModuleNotFoundError:
from cubicweb.view import Component # TODO remove with CubicWeb 3 support
from cubicweb_jsonschema import CREATION_ROLE
@@ -199,6 +202,8 @@
component.
"""
def decorator(cls):
builder = vreg['components'].select('jsonschema.map.builder', cnx)
vreg_components = vreg['components']
builder = vreg_components.select('jsonschema.map.builder', cnx)
assert builder
return builder.document(cls, schema_role)
return decorator
Loading