devtools/test/data/cubes/i18ntestcube/views/uicfg.py
branchstable
changeset 9153 bc1b8e77d6ce
equal deleted inserted replaced
9152:b0155bfd4e17 9153:bc1b8e77d6ce
       
     1 # -*- coding: utf-8 -*-
       
     2 # copyright 2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     3 # contact http://www.logilab.fr -- mailto:contact@logilab.fr
       
     4 #
       
     5 # This program is free software: you can redistribute it and/or modify it under
       
     6 # the terms of the GNU Lesser General Public License as published by the Free
       
     7 # Software Foundation, either version 2.1 of the License, or (at your option)
       
     8 # any later version.
       
     9 #
       
    10 # This program is distributed in the hope that it will be useful, but WITHOUT
       
    11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    12 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
       
    13 # details.
       
    14 #
       
    15 # You should have received a copy of the GNU Lesser General Public License along
       
    16 # with this program. If not, see <http://www.gnu.org/licenses/>.
       
    17 
       
    18 """cubicweb-forum views/forms/actions/components for web ui"""
       
    19 
       
    20 from cubicweb.predicates import is_instance
       
    21 from cubicweb.web.views import uicfg
       
    22 from cubicweb.web.views.uicfg import autoform_section as afs
       
    23 
       
    24 class MyAFS(uicfg.AutoformSectionRelationTags):
       
    25     __select__ = is_instance('ForumThread')
       
    26 
       
    27 _myafs = MyAFS()
       
    28 _myafs.__module__ = "cubes.i18ntestcube.views.uicfg"
       
    29 
       
    30 _myafs.tag_object_of(('*', 'in_forum', 'Forum'), 'main', 'inlined')