web/views/cwproperties.py
changeset 4360 5fdb9da1fab0
parent 4265 0912f111b028
child 4361 887c92793407
--- 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)