move CWProperty rtags from autoform to cwproperties module.
--- 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')
--- 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'</div>')
+
+
+_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)