[sources] hide some attributes from source edition form. Closes #2144160 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 06 Jan 2012 18:44:52 +0100
branchstable
changeset 8150 b5a9706f839e
parent 8149 3ed48646f354
child 8152 b9bb3372b85f
[sources] hide some attributes from source edition form. Closes #2144160
web/views/cwsources.py
--- a/web/views/cwsources.py	Tue Jan 03 17:59:31 2012 +0100
+++ b/web/views/cwsources.py	Fri Jan 06 18:44:52 2012 +0100
@@ -47,6 +47,8 @@
 _abaa.tag_object_of(('CWDataImport', 'cw_import_of', '*'), False)
 
 _afs = uicfg.autoform_section
+_afs.tag_attribute(('CWSource', 'latest_retrieval'), 'main', 'hidden')
+_afs.tag_attribute(('CWSource', 'in_synchronization'), 'main', 'hidden')
 _afs.tag_object_of(('*', 'cw_for_source', 'CWSource'), 'main', 'hidden')
 
 _affk = uicfg.autoform_field_kwargs