From: Ralf K. <r...@lf...> - 2008-12-11 05:45:19
|
What would you like to see for the motion and lamp objects within the skin? If they dont return a state, what should be shown? Something like "unknown"? A quick fix is to exclude these objects out of the groups ;-). Might not be what you want. However, we will find a solution. -- R...@lf... Am 11.12.2008 um 04:58 schrieb David Satterfield <dav...@ya... >: > Hi, > I tried out the new iphone skins, and ran into an issue. When I tie > my $Property group to the $Main group, I get a bunch of LOMP objects > instantiated This causes the iphone.pl script to die. I'm not sure > if it's a bug in the iphone.pl script, or in the LOMP objects. I > assume this combination should work, but maybe I'm wrong about that. > > Here's the error I get: > Error in eval: Can't use an undefined value as an ARRAY reference at > (eval 742) line 15952, <HTML> line 35. This translates to this piece > of code (I marked the line that fails) > > The error is caused by the line of code below, which tries to get > the states of the LOMP (I use L and M). > > } elsif ($object->isa('Group')) { > $name =~ s/^://; > $html .= " <li><a href='#_$item2'>$icon$name</ > a></li>"; > $html_group = ""; > for my $o (&list_objects_by_group($list_name, 1)) { > next unless $o; > $html_group .= iphoneWebApp($o,'iLayer'); > } > } else { > my @item_states = @{$object->{states}}; > if ($name =~ s/^:// || !@item_states ) { > $html .= " <li>$icon$name<span>$state</ > span></li> "; > } else { > $html .= " <li><a href='#_$item2'>$icon > $name<span>$state</span></a></li> "; > $html_group = ""; > .>>>>>> my @item_states = @{$object->{states}}; <<<<<<<< > This line fails, since Motion and Lamp objects don't return states > here > for my $s (@item_states) { > next if ($s =~ m:\d*/\d*.*:); > $html_group .= " <li><a href='../ > SET;&referer(/iphone/%23_$item2)?$item2=$s'>$s</a></li> > "; > } > my $r = ref $object; > $html_group = ' > <div class="iLayer" id="wa'.$item2.'" title="'.$name.'"> > <div class="iMenu"> > <ul class="iArrow"> > ' . $html_group . ' > </ul> > Sorry, ' . $r . ' currently not fully supported > </div> > </div> > '; > } > > Any thoughts on how to fix this? > Thanks, > David Satterfield > > --- > --- > --- > --------------------------------------------------------------------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > |