LadonTypes can't be nulled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ladon |
Fix Committed
|
High
|
jsgaarde |
Bug Description
I have this ladon complex types: http://
There are three classes: Customer, Contact, ContactType
Customer has many Contacts.
Contact is mebmer of one ContactType.
Then I send this SOAP request: http://
Please focus on this line, contactType is empty(NULL): <contactType xsi:nil="true" xsi:type=
I log values of ContactType attributes (ID, Name) on the server side and this is result:
INFO:ID:{'doc': 'ID of contact type', 'type': <class 'int'>, 'nullable': True}
INFO:Name:{'doc': 'Name of contact type', 'type': <class 'str'>, 'nullable': True}
I believe that when I put this object back in response, so the dispatcher will interpret these values as NULLs. But I need work with these attributes on the server. Eg. insert new ContactType into database and this is not possible.
Changed in ladon: | |
assignee: | nobody → jsgaarde (jakob-simon-gaarde) |
importance: | Undecided → High |
LadonType attributes that are None or untouched with no default value, will have the attribute xsi:nil set.
The test service I used to fix the bug can be found here:
http:// bazaar. launchpad. net/~ladon- dev-team/ ladon/ladon/ files/head: /frameworks/ python/ support/ bugs/926442/