# HG changeset patch # User Aurelien Campeas # Date 1240997051 -7200 # Node ID 788b5ca792bd77388836794a7215f83ac13dc696 # Parent 1e695b78d0854db8a94e9a1694b2f6c2e170fa6e fix rfields declaration order diff -r 1e695b78d085 -r 788b5ca792bd 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')