Changes between Version 44 and Version 45 of Proposal


Ignore:
Timestamp:
Jul 8, 2013, 2:36:43 PM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proposal

    v44 v45  
    6060weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example")
    6161
     62ets.register(weatherTempBlock)
     63
    6264ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1")
    6365ets.weave(fb=weatherTempBlock, dp="humidity", gad="1/1/2")
     
    117119        # temperature = xxx
    118120        # humidity = xxx
    119         self.dp["temperature"] = temperature
    120         self.dp["humidity"] = humidity
     121        self.dp["temperature"].value = temperature
     122        self.dp["humidity"].value = humidity
    121123}}}
    122124
     
    130132#!python
    131133weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example")
     134}}}
     135
     136register it to {{{ETS}}} object:
     137
     138{{{
     139#!python
     140ets.register(weatherTempBlock
    132141}}}
    133142