web/uihelper.py
changeset 8033 2a9764674a74
parent 8030 552d85fcb587
child 8238 087bb529035c
equal deleted inserted replaced
8032:bcb87336c7d2 8033:2a9764674a74
   145 .. sourcecode:: python
   145 .. sourcecode:: python
   146 
   146 
   147   from cubicweb.web import uihelper
   147   from cubicweb.web import uihelper
   148   uihelper.hide_fields('CWUser', ('login', ('use_email', 'subject')), formtype='inlined')
   148   uihelper.hide_fields('CWUser', ('login', ('use_email', 'subject')), formtype='inlined')
   149     """
   149     """
   150     for field in fields:
   150     for attr in attrs:
   151         hide_field(etype, field, formtype=formtype)
   151         hide_field(etype, attr, formtype=formtype)
   152 
   152 
   153 
   153 
   154 def set_field_kwargs(etype, attr, **kwargs):
   154 def set_field_kwargs(etype, attr, **kwargs):
   155     """tag `attr` field of `etype` with additional named paremeters.
   155     """tag `attr` field of `etype` with additional named paremeters.
   156 
   156