--- a/cubicweb/devtools/test/data/libpython/cubicweb_i18ntestcube/views.py Fri Mar 08 11:50:20 2019 +0100
+++ b/cubicweb/devtools/test/data/libpython/cubicweb_i18ntestcube/views.py Fri Mar 08 11:52:31 2019 +0100
@@ -21,9 +21,11 @@
from cubicweb.web.views import primary, baseviews, uicfg
from cubicweb.web.views.uicfg import autoform_section as afs
+
class MyAFS(uicfg.AutoformSectionRelationTags):
__select__ = is_instance('ForumThread')
+
_myafs = MyAFS(__module__=__name__)
_myafs.tag_object_of(('*', 'in_forum', 'Forum'), 'main', 'inlined')
@@ -57,5 +59,6 @@
_('Last answered')
_('This forum does not have any thread yet.')
+
class ForumThreadPrimaryView(primary.PrimaryView):
__select__ = primary.PrimaryView.__select__ & is_instance('ForumThread')
--- a/flake8-ok-files.txt Fri Mar 08 11:50:20 2019 +0100
+++ b/flake8-ok-files.txt Fri Mar 08 11:52:31 2019 +0100
@@ -13,6 +13,7 @@
cubicweb/dataimport/test/test_stores.py
cubicweb/dataimport/test/unittest_importer.py
cubicweb/devtools/test/data/cubes/i18ntestcube/__init__.py
+cubicweb/devtools/test/data/cubes/i18ntestcube/views.py
cubicweb/devtools/test/data/cubes/__init__.py
cubicweb/devtools/test/data/schema.py
cubicweb/devtools/testlib.py