Retrieving a list of strings is seen as listmodel that can't be saved back
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
New
|
Undecided
|
Unassigned | ||
u1db-qt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If you push a document that contains property being a list of strings, like:
{
'attachements': ["/path/
}
Retrieving it is making the attachements a ListModel through the QML type system (outside of u1db's scope thus). The ListModel contains ObjectModel and it's useful to attach that to Repeater/Grid.
However, when we try to store those data back (from the same object), the ListModel/
{
'attachments: [null, null]
}
So getting the object don't enable to save it back, we have to manually typecast it and create some json objects from it, which is quite ugly and cumbersome: https:/
Any idea if u1db-qt can typecast it back to something that can be stored, or anything to make the developer's life easier?