Re: [openstack-dev] [oslo][nova]Accessing nullable, not set versioned object field

2016-12-20 Thread Balázs Gibizer
From: Dan Smith Sent: 16 December 2016 16:33 >> NotImplementedError: Cannot load 'nullable_string' in the base class >> >> Is this the correct behavior? > > Yes, that's the expected behaviour. Yes. >> Then what is the expected behavior if the field is also defaulted to >>

Re: [openstack-dev] [oslo][nova]Accessing nullable, not set versioned object field

2016-12-16 Thread Dan Smith
>> NotImplementedError: Cannot load 'nullable_string' in the base class >> >> Is this the correct behavior? > > Yes, that's the expected behaviour. Yes. >> Then what is the expected behavior if the field is also defaulted to >> None? >> >> fields = { >> 'nullable_string':

Re: [openstack-dev] [oslo][nova]Accessing nullable, not set versioned object field

2016-12-16 Thread Jay Pipes
On 12/16/2016 07:42 AM, Balázs Gibizer wrote: Hi, What is the expected behavior of accessing a nullable and not set versioned object field? See the following example code: from oslo_versionedobjects import base from oslo_versionedobjects import fields @base.VersionedObjectRegistry.register

[openstack-dev] [oslo][nova]Accessing nullable, not set versioned object field

2016-12-16 Thread Balázs Gibizer
Hi, What is the expected behavior of accessing a nullable and not set versioned object field? See the following example code: from oslo_versionedobjects import base from oslo_versionedobjects import fields @base.VersionedObjectRegistry.register class MyObject(base.VersionedObject):