Le 18/06/2013 13:59, Pierrick Koch a écrit :
>
> In src/morse/builder/actuators.py:
>
> >          ActuatorCreator.__init__(self, name, \
> >                                   "morse.actuators.light.Light",\
> >                                   "light")
> > -        light = Spot("LightSpot")
> > -        self.append(light)
> > -        self.properties(emit = True)
> > +        self.light = Spot("LightSpot")
> > +        self.append(self.light)
> > +        self.properties(Emit=True)
> > +
> > +    def properties(self, **kwargs):
> > +        ActuatorCreator.properties(self, **kwargs)
> > +        if (self.light):
>
> this test is always true, isn't it ?
>

Actually not: the properties function is also called in 
ActuatorCreator.__init__, hence before the Spot object has been created!

> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/morse-simulator/morse/pull/406/files#r4745807>.
>