demo: Migrate to jsonschema_config uicfg
authorFrank Bessou <frank.bessou@logilab.fr>
Thu, 27 Apr 2017 16:42:21 +0200
changeset 136 7961cd55e99b
parent 135 3f7a3d0d3730
child 137 42d181c66dfa
demo: Migrate to jsonschema_config uicfg
demo/server/cubicweb_bookstore/views.py
--- a/demo/server/cubicweb_bookstore/views.py	Wed Apr 26 11:00:22 2017 +0200
+++ b/demo/server/cubicweb_bookstore/views.py	Thu Apr 27 16:42:21 2017 +0200
@@ -17,9 +17,7 @@
 
 """cubicweb-bookstore views/forms/actions/components for web ui"""
 
-from cubicweb.web.views import uicfg
+from cubicweb_jsonschema.views import jsonschema_config
 
-uicfg.primaryview_section.tag_subject_of(
-    ('Book', 'topics', '*'), 'attributes')
-uicfg.autoform_section.tag_object_of(
-    ('*', 'illustrates', 'Book'), 'main', 'inlined')
+jsonschema_config.tag_subject_of(('Book', 'topics', '*'), 'inlined')
+jsonschema_config.tag_object_of(('*', 'illustrates', 'Book'), 'inlined')