~salvatore-orlando/neutron/bug822813

« back to all changes in this revision

Viewing changes to extensions/_qos_view.py

  • Committer: Dan Wendlandt
  • Date: 2011-08-26 19:25:31 UTC
  • mfrom: (53.1.1 quantum)
  • Revision ID: dan@nicira.com-20110826192531-gjacj8i0xnm336lf
merge two pep8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
class ViewBuilder(object):
30
30
    """
31
 
    ViewBuilder for QoS, 
 
31
    ViewBuilder for QoS,
32
32
    derived from quantum.views.networks
33
33
    """
34
34
    def __init__(self, base_url):
44
44
        else:
45
45
            qos = self._build_simple(qos_data)
46
46
        return qos
47
 
    
 
47
 
48
48
    def _build_simple(self, qos_data):
49
49
        """Return a simple description of qos."""
50
50
        return dict(qos=dict(id=qos_data['qos_id']))
51
 
    
 
51
 
52
52
    def _build_detail(self, qos_data):
53
53
        """Return a detailed description of qos."""
54
54
        return dict(qos=dict(id=qos_data['qos_id'],