Brian Kelley wrote:

Ordered views are acting strangely. I'm using python with the latest metakit.

view is as follows, two string columns A,B

vw = st.getas("test[a:S,b:S]").ordered(1)

vw.append(("JC4929", "a"))
vw.append(("JC4929", "b"))

yields (as expected) ->

a       b
------  -
JC4929  a
JC4929  b
------  -
Total: 2 rows

vw.append(("JC4929", "1"))

obliterates the first row ->
a       b
------  -
JC4929  1
JC4929  b
------  -
Total: 2 rows

The ordered() operation cannot deal with duplicates. Unfortunately, it is not checking things properly, so the errors themselves are weird and wrong at times.


I can see how it would make more sense to turn an add into a replace, and make the above behave like dictionaries, but for now it's not the case.

Or am I'm missing the point - are you saying that ordered() worked better in 2.4.9.2?

-jcw

_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to