Replace jsonschema_config by jsonschema_section
authorFrank Bessou <frank.bessou@logilab.fr>
Wed, 17 May 2017 17:18:04 +0200
changeset 209 c15e53a5b67c
parent 208 310659809732
child 210 bb3261911433
Replace jsonschema_config by jsonschema_section
demo/server/cubicweb_bookstore/views.py
--- a/demo/server/cubicweb_bookstore/views.py	Tue May 16 15:34:38 2017 +0200
+++ b/demo/server/cubicweb_bookstore/views.py	Wed May 17 17:18:04 2017 +0200
@@ -17,9 +17,9 @@
 
 """cubicweb-bookstore views/forms/actions/components for web ui"""
 
-from cubicweb_jsonschema.views import jsonschema_config
+from cubicweb_jsonschema.views import jsonschema_section
 
-jsonschema_config.tag_subject_of(('Book', 'topics', '*'), 'related')
-jsonschema_config.tag_object_of(('*', 'illustrates', 'Book'), 'inlined')
-jsonschema_config.tag_subject_of(('Book', 'author', 'Author'), 'related')
-jsonschema_config.tag_subject_of(('*', 'use_email', '*'), 'inlined')
+jsonschema_section.tag_subject_of(('Book', 'topics', '*'), 'related')
+jsonschema_section.tag_object_of(('*', 'illustrates', 'Book'), 'inlined')
+jsonschema_section.tag_subject_of(('Book', 'author', 'Author'), 'related')
+jsonschema_section.tag_subject_of(('*', 'use_email', '*'), 'inlined')