IWS: is there a "dictionary" ?

Posted on
Wed Oct 22, 2008 7:19 am
jashaffner offline
Posts: 59
Joined: Jan 14, 2007

IWS: is there a "dictionary" ?

What is the best way to find possible properties for certain variables like device in python/cheetah/cherrypy? I can see some code showing stuff like $dev.isOn and $dev.typeSupportsOnOff. Where are they defined?

It is my first time trying python/cheetah/cherrypy here.

Thanks.

Posted on
Wed Oct 22, 2008 7:40 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: IWS: is there a "dictionary" ?

Take a look inside the IWS/indigopy/indigodb.py file. Search for "class Device" and then look at the __init() function. That is where all of the instance properties are defined based on the XML the IndigoServer passes IWS.

Regards,
Matt

Posted on
Wed Oct 22, 2008 7:57 am
jashaffner offline
Posts: 59
Joined: Jan 14, 2007

(No subject)

Thanks, Matt

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

cron