简体   繁体   中英

How do you extend a library created variable in onvif python?

onvif python will create base variables from WSDL but not the optional elements. How do I add the optional variables to the existing definition?

as in a = create(sometype)

This defines the elements ab and a.c.

I need to add elements a.c.d, a.c.eg and a.c.eh

The short answer: It depends on what the existing variable is.

The longer answer: Since the existing variable is defined by a third party library with little to no visibility, run the code under a debugger that will tell you what the existing variable is, eg, list, dict, etc. From that information look in the python documentation if you are not familiar with that type of variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM