Merge lp://qastaging/~mhr3/dee/easy-hints into lp://qastaging/dee
Proposed by
Michal Hruby
Status: | Merged |
---|---|
Approved by: | Michal Hruby |
Approved revision: | 408 |
Merged at revision: | 388 |
Proposed branch: | lp://qastaging/~mhr3/dee/easy-hints |
Merge into: | lp://qastaging/dee |
Prerequisite: | lp://qastaging/~mhr3/dee/named-columns |
Diff against target: |
1117 lines (+638/-75) 9 files modified
bindings/python/Dee.py (+38/-12) debian/libdee-1.0-4.symbols (+2/-0) src/dee-model.c (+147/-52) src/dee-model.h (+16/-0) src/dee-proxy-model.c (+35/-1) src/dee-serializable-model.c (+173/-4) src/dee-transaction.c (+39/-3) tests/test-model-rows.c (+183/-0) vapi/dee-1.0.vapi (+5/-3) |
To merge this branch: | bzr merge lp://qastaging/~mhr3/dee/easy-hints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Paweł Stołowski (community) | Approve | ||
Review via email: mp+135197@code.qastaging.launchpad.net |
Commit message
Implement methods to allow easy manipulation of a{sv} columns
Description of the change
Add a new method to register schema of fields in columns with 'a{sv}' schema plus transparent support for that in build_named_row() and get_value_by_name() methods.
To post a comment you must log in.
285 + g_variant_ builder_ add (builders[col_idx], "{sv}",
286 + col_name, // FIXME: "::"
287 + collect_variant (col_schema, args));
I think "::" needs to be handled?
Question: what happens if there are two a{sv} fields in the model, and both have some common fields (e.g. "id")? build_named_ row (fix->model, "object-path", "/org/example", "field1::id", 8123, "field2::id", 1111, NULL) just work?
Would something like:
dee_model_