Closed GoogleCodeExporter closed 9 years ago
I can't reproduce. What does this do for you?
>>> list(fs.render_fields.itervalues())
I get
[AttributeField(name), AttributeField(fullname), AttributeField(password)]
which is the order the renderer will output them.
Original comment by jbel...@gmail.com
on 31 Dec 2008 at 4:10
In [10]: list(fs.render_fields)
Out[10]: ['name', 'fullname', 'password']
In [11]: list(fs.render_fields.intervalues)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/goshawk/Documents/Projects/FairPro/program/managecorp/managecom/<ipython
console> in <module>()
AttributeError: 'OrderedDict' object has no attribute 'intervalues'
In [12]:
But i still have the same issue... any idea?
Original comment by vincenzo...@gmail.com
on 31 Dec 2008 at 10:23
and:
In [9]: list(fs.render_fields.intervalues())
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/goshawk/Documents/Projects/FairPro/program/managecorp/managecom/<ipython
console> in <module>()
AttributeError: 'OrderedDict' object has no attribute 'intervalues'
Original comment by vincenzo...@gmail.com
on 31 Dec 2008 at 10:25
[deleted comment]
itervalues*
Original comment by gael.pas...@gmail.com
on 31 Dec 2008 at 10:29
list(fs.render_fields.itervalues())
Out[4]: [AttributeField(name), AttributeField(fullname),
AttributeField(password)]
But the order is still: Fullname Password Name as in the attached pic.
Original comment by vincenzo...@gmail.com
on 31 Dec 2008 at 4:05
Found the bug. Fixed in r623. Thanks for the report!
Verified that Table/mapper pairs will also sort attributes correctly in 0.5,
btw.
You don't have to use declarative style. (But, it's nicer anyway. :)
Original comment by jbel...@gmail.com
on 1 Jan 2009 at 6:22
Original issue reported on code.google.com by
vincenzo...@gmail.com
on 30 Dec 2008 at 11:49Attachments: