Merge lp:~spud/spud/make-diamond-pick-up-attributes-of-real-vectors-and-tensors into lp:spud
Proposed by
Patrick Farrell
Status: | Merged |
---|---|
Merged at revision: | 510 |
Proposed branch: | lp:~spud/spud/make-diamond-pick-up-attributes-of-real-vectors-and-tensors |
Merge into: | lp:spud |
Diff against target: |
111 lines (+39/-6) 5 files modified
diamond/diamond/attributewidget.py (+1/-1) diamond/diamond/mixedtree.py (+20/-3) diamond/diamond/tree.py (+7/-0) diamond/tests/schema/first.rnc (+4/-1) diamond/tests/schema/first.rng (+7/-1) |
To merge this branch: | bzr merge lp:~spud/spud/make-diamond-pick-up-attributes-of-real-vectors-and-tensors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Ham | Approve | ||
Review via email:
|
Description of the change
Found a major bug in Diamond's interface, pointed out by Dan Barker.
In the MixedTree class (used to hide real_value and stuff like that from the user), the attributes came solely from the parent. But the child (real_value) element also could have attributes the user must set -- but these were never displayed, and could never be set.
To test this, take a look at the first.rng included with this commit, with Diamond before and after this change. In particular, real_vector and real_tensor have /never/ worked, despite being in the spud_base schema.
To post a comment you must log in.