Problem with None values with attributes of complex types
Asked by
Ales Klimsa
When I put None value into some attribute from ladon complex type. And use this attribute later, there isn't None value, but the attribute definition, eg.{'default': None, 'doc': "Customer's ID", 'type': <class 'int'>, 'nullable': True}.
I have this ladon complex type:
class ContactType(
ID = {
'type' : int,
}
Name = {
'type' : PORTABLE_STRING,
}
And this test code:
ct = ContactType()
ct.Name = 'NAME'
print(ct.ID, ct.Name)
will print this:
{'doc': 'ID of contact type', 'type': <class 'int'>, 'nullable': True} NAME
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- ladon Edit question
- Assignee:
- jsgaarde Edit question
- Solved by:
- Ales Klimsa
- Solved:
- Last query:
- Last reply:
To post a message you must log in.