LinuxMCE Forums

General => Developers => Topic started by: ddamron on January 15, 2008, 04:47:04 pm

Title: Trying to get Parent ID in Ruby
Post by: ddamron on January 15, 2008, 04:47:04 pm
I can't seem to get the parent device from ANY object in ruby.
device_.parent_ returns nil

device_.childdevices_[cmd.devidto_].parent_ SHOULD  report the device_.devid_
It's reporting nil

Is this not correct?

Thanks,

Dan
Title: Re: Trying to get Parent ID in Ruby
Post by: ddamron on January 15, 2008, 04:58:17 pm
another piece of tidbit:
parent_.inspect kills the device...
Title: Re: Trying to get Parent ID in Ruby
Post by: ddamron on January 15, 2008, 06:04:36 pm
reported in mantis:
http://mantis.linuxmce.org/view.php?id=3820