web/uicfg.py
branchstable
changeset 3057 f4ba5a251ab7
parent 2705 30bcdbd92820
child 3071 6ad4e6d4df86
child 3127 920079cb4e5b
equal deleted inserted replaced
3056:61f71ed15cfa 3057:f4ba5a251ab7
    65 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
    65 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
    66 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
    66 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
    67 """
    67 """
    68 __docformat__ = "restructuredtext en"
    68 __docformat__ = "restructuredtext en"
    69 
    69 
    70 from cubicweb import neg_role, onevent
    70 from cubicweb import neg_role
    71 from cubicweb.rtags import (RelationTags, RelationTagsBool,
    71 from cubicweb.rtags import (RelationTags, RelationTagsBool,
    72                             RelationTagsSet, RelationTagsDict)
    72                             RelationTagsSet, RelationTagsDict)
    73 from cubicweb.web import formwidgets
    73 from cubicweb.web import formwidgets
    74 
    74 
    75 
    75 
   214                rschema.rproperty(sschema, oschema, 'composite') == role:
   214                rschema.rproperty(sschema, oschema, 'composite') == role:
   215             rtag.tag_relation((sschema, rschema, oschema, role), True)
   215             rtag.tag_relation((sschema, rschema, oschema, role), True)
   216 
   216 
   217 actionbox_appearsin_addmenu = RelationTagsBool('actionbox_appearsin_addmenu',
   217 actionbox_appearsin_addmenu = RelationTagsBool('actionbox_appearsin_addmenu',
   218                                                init_actionbox_appearsin_addmenu)
   218                                                init_actionbox_appearsin_addmenu)
   219 
       
   220 @onevent('before-registry-reload')
       
   221 def clear_rtag_objects():
       
   222     primaryview_section.clear()
       
   223     primaryview_display_ctrl.clear()
       
   224     autoform_section.clear()
       
   225     autoform_field.clear()
       
   226     autoform_field_kwargs.clear()
       
   227     autoform_is_inlined.clear()
       
   228     autoform_permissions_overrides.clear()
       
   229     actionbox_appearsin_addmenu.clear()