Skip to content

min and max without function on basic.shifter() #36

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. {{ basic.shifter(id~'battery', '', gad_battery, 'icon.battery', '2', '5') }}

What is the expected output? 
<svg id="room_wohnzimmer-123battery" data-widget="icon.battery" 
data-item="WZ_rtr_battery, " data-min="2" data-max="5" class="icon icon0" 
xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100">
        <g>
            <rect x="44" y="21" width="12" height="3"></rect>
            <rect rx="3" x="35" y="25" width="30" height="45" fill="none"></rect>
        </g>
    </svg>

What do you see instead?
<svg id="room_wohnzimmer-123battery" data-widget="icon.battery" 
data-item="WZ_rtr_battery, " data-min="0" data-max="255" class="icon icon0" 
xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100">
        <g>
            <rect x="44" y="21" width="12" height="3"></rect>
            <rect rx="3" x="35" y="25" width="30" height="45" fill="none"></rect>
        </g>
    </svg>

What version of the product are you using? On what operating system?
2.7 with lighttpd on raspian

Please provide any additional information below.
data-min and data-max were not taken correctly from widget definition.

Original issue reported on code.google.com by bernd.ge...@gmail.com on 11 Dec 2014 at 10:29

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions