fix rfields declaration order tls-sprint
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 29 Apr 2009 11:24:11 +0200
branchtls-sprint
changeset 1537 788b5ca792bd
parent 1536 1e695b78d085
child 1538 806a7ca31411
fix rfields declaration order
web/views/cwproperties.py
--- a/web/views/cwproperties.py	Wed Apr 29 10:55:57 2009 +0200
+++ b/web/views/cwproperties.py	Wed Apr 29 11:24:11 2009 +0200
@@ -12,10 +12,9 @@
 
 from cubicweb import UnknownProperty
 from cubicweb.selectors import (one_line_rset, none_rset, implements,
-                                match_user_groups, entity_implements)
-from cubicweb.utils import UStringIO
+                                match_user_groups)
 from cubicweb.view import StartupView
-from cubicweb.web import INTERNAL_FIELD_VALUE, eid_param, uicfg
+from cubicweb.web import uicfg
 from cubicweb.web.views import baseviews
 from cubicweb.web import stdmsgs
 from cubicweb.web.form import CompositeForm, EntityFieldsForm, FormViewMixIn
@@ -24,9 +23,6 @@
 
 _ = unicode
 
-uicfg.rfields.tag_relation(PropertyKeyField, ('CWProperty', 'pkey', '*'), 'subject')
-uicfg.rfields.tag_relation(PropertyValueField, ('CWProperty', 'value', '*'), 'subject')
-
 # some string we want to be internationalizable for nicer display of eproperty
 # groups
 _('navigation')
@@ -327,3 +323,6 @@
                 wdg.attrs.setdefault('size', 3)
         self.widget = wdg
 
+
+uicfg.rfields.tag_relation(PropertyKeyField, ('CWProperty', 'pkey', '*'), 'subject')
+uicfg.rfields.tag_relation(PropertyValueField, ('CWProperty', 'value', '*'), 'subject')