Another attempt with non-string embedded lists

2 views
Skip to first unread message

Cynthia Kurtz

unread,
Sep 16, 2009, 5:49:06 PM9/16/09
to AppRocket
I decided I wanted to try and get the non-string embedded list fields
to work (see previous post). After much tracing down and
logging.info's in the code, I found this statement, in
get_table_metadata:

table.fields[field_name] = TYPE_STR_LIST # for embedded lists
currently we only support string values

So, THAT's why it doesn't work. It's not implemented. It would have
saved me a few hours of work if the *documentation* had said that
instead of my having to find it out the hard way! But at least there's
an answer for anyone else who might be tracing down the same issue. I
have loads of non-string lists (mostly bools and ints) so that's a
real bummer for me.

If anyone starts maintaining AppRocket again (it seems abandoned at
the moment?) perhaps non-string embedded lists could go into the wish
list for new features. I can see that the way the lists are
implemented now it would be hard to guess the type from what is in the
database field. You'd need to maybe include the type IN the
concatenated string, like "bool|0|1|0|1" instead of just "0|1|0|1" to
make it work. Otherwise there is no way of knowing whether the
elements in the list are bools or ints or just strings.
Reply all
Reply to author
Forward
0 new messages