# HG changeset patch # User Sylvain Thénault # Date 1264498523 -3600 # Node ID 5fdb9da1fab056303abf0e33565fe0490e80143f # Parent fabc680bb0bf3c167724673dd1002cdb359cc7ca move CWProperty rtags from autoform to cwproperties module. diff -r fabc680bb0bf -r 5fdb9da1fab0 web/views/autoform.py --- a/web/views/autoform.py Tue Jan 26 10:34:29 2010 +0100 +++ b/web/views/autoform.py Tue Jan 26 10:35:23 2010 +0100 @@ -316,8 +316,6 @@ _afs.tag_subject_of(('*', 'wf_info_for', '*'), 'main', 'attributes') _afs.tag_subject_of(('*', 'wf_info_for', '*'), 'muledit', 'attributes') _afs.tag_object_of(('*', 'wf_info_for', '*'), 'main', 'hidden') -_afs.tag_subject_of(('*', 'for_user', '*'), 'main', 'hidden') -_afs.tag_object_of(('*', 'for_user', '*'), 'main', 'hidden') _afs.tag_subject_of(('CWPermission', 'require_group', '*'), 'main', 'attributes') _afs.tag_subject_of(('CWPermission', 'require_group', '*'), 'muledit', 'attributes') _afs.tag_attribute(('CWEType', 'final'), 'main', 'hidden') diff -r fabc680bb0bf -r 5fdb9da1fab0 web/views/cwproperties.py --- a/web/views/cwproperties.py Tue Jan 26 10:34:29 2010 +0100 +++ b/web/views/cwproperties.py Tue Jan 26 10:35:23 2010 +0100 @@ -354,9 +354,6 @@ self.choices = field.vocabulary(form) self.widget = wdg -uicfg.autoform_field.tag_attribute(('CWProperty', 'pkey'), PropertyKeyField) -uicfg.autoform_field.tag_attribute(('CWProperty', 'value'), PropertyValueField) - class CWPropertiesFormRenderer(formrenderers.FormRenderer): """specific renderer for properties""" @@ -385,3 +382,11 @@ for button in form.form_buttons: w(u'%s\n' % button.render(form)) w(u'') + + +_afs = uicfg.autoform_section +_afs.tag_subject_of(('*', 'for_user', '*'), 'main', 'hidden') +_afs.tag_object_of(('*', 'for_user', '*'), 'main', 'hidden') +_aff = uicfg.autoform_field +_aff.tag_attribute(('CWProperty', 'pkey'), PropertyKeyField) +_aff.tag_attribute(('CWProperty', 'value'), PropertyValueField)