# HG changeset patch # User Sylvain Thénault # Date 1308236570 -7200 # Node ID c019c3426049f49d4885cac958c74a16d7565f2c # Parent f6856231cc518aa73b3e8c2762d708bd2d3c9355 [ui, sources] configure source form: hide synchronizing and mapping entities, use simple text input for parser diff -r f6856231cc51 -r c019c3426049 web/views/cwsources.py --- a/web/views/cwsources.py Thu Jun 16 15:52:05 2011 +0200 +++ b/web/views/cwsources.py Thu Jun 16 17:02:50 2011 +0200 @@ -27,7 +27,7 @@ from cubicweb.selectors import is_instance, score_entity, match_user_groups from cubicweb.view import EntityView, StartupView from cubicweb.schema import META_RTYPES, VIRTUAL_RTYPES, display_name -from cubicweb.web import uicfg +from cubicweb.web import uicfg, formwidgets as wdgs from cubicweb.web.views import tabs, actions @@ -35,6 +35,12 @@ _abaa.tag_object_of(('CWSourceSchemaConfig', 'cw_schema', '*'), False) _abaa.tag_object_of(('CWSourceSchemaConfig', 'cw_for_source', '*'), False) +_afs = uicfg.autoform_section +_afs.tag_attribute(('CWSource', 'synchronizing'), 'main', 'hidden') +_afs.tag_object_of(('*', 'cw_for_source', 'CWSource'), 'main', 'hidden') +_affk = uicfg.autoform_field_kwargs +_affk.tag_attribute(('CWSource', 'parser'), {'widget': wdgs.TextInput}) + # source primary views ######################################################### _pvs = uicfg.primaryview_section