~ubuntuone-hackers/ubuntu-rest-scopes/trunk

« back to all changes in this revision

Viewing changes to src/scopes/weatherchannel.py

  • Committer: Facundo Batista
  • Date: 2016-06-07 14:01:21 UTC
  • mfrom: (508.2.9 ubuntu-rest-scopes)
  • mto: This revision was merged to the branch mainline in revision 527.
  • Revision ID: facundo@taniquetil.com.ar-20160607140121-id1tzsnaa1lwtrb8
MergedĀ lp:~jamesh/ubuntu-rest-scopes/multi-column

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: UTF-8 -*-
 
1
# -*- coding: utf-8 -*-
2
2
 
3
3
# Copyright 2014-2015 Canonical
4
4
# All Rights Reserved
643
643
        max_min_temps = (info['max_temp'], info['min_temp'])
644
644
        temperatures = u" / ".join(temp for temp in max_min_temps if temp)
645
645
 
 
646
        # column layouts
 
647
        single = [[]]
 
648
        double = [[], []]
 
649
        single[0].append('art')
 
650
        double[0].append('art')
 
651
        single[0].append('header1')
 
652
        double[0].append('header1')
 
653
        single[0].append('actions')
 
654
        double[0].append('actions')
 
655
        single[0].append('table1')
 
656
        double[1].append('table1')
 
657
        yield dict(columns=[single, double])
 
658
 
646
659
        # yield an 'image' widget
647
660
        yield dict(widget={
648
661
            'id': 'art',