[spyne] Spyne and customized classes

Burak Arslan burak.arslan at arskom.com.tr
Thu Oct 8 01:09:09 UTC 2015



On 10/07/15 14:58, Rinat Shigapov wrote:
>
> I've just adapted my project to spyne 2.12.9 and see a bunch of 'seems
> to be a customized class. They are not supposed to be instantiated.'
> warnings.
>
> What does it mean?

You get this warning when:

class C(ComplexModel):
   a = Integer

C1 = C.customize()

C1() # warning!

You should always use C in your code and use customized classes only as
markers in @rpc or class definitions.

This is fixed in 0c0cf756a50c643c123a53a31e702b7481b0ff5a.

Best,
Burak


More information about the people mailing list