[Soap-Python] Complex types rpclib

Burak Arslan burak.arslan at arskom.com.tr
Mon Oct 24 15:22:17 CEST 2011


On 10/24/11 16:10, azurIt wrote:
> Hi,
>
> i'm having problems in setting complex type which element name is reserved Python word (getting syntax error):
>
> class perms_request(ComplexModel):
>   and = Array(String)
>   or = Array(String)
>
> Any ideas how to resolve this ? I simply cannot change element name cos of backward compatibility (it will be really BIG change in our system). Thnx.
>

class perms_request(ComplexModel):
    _type_info = {
        'and': Array(String),
        'or': Array(String),
    }

does that work?

burak


More information about the Soap mailing list