~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/client/gui/gtk.py

  • Committer: Robert Collins
  • Date: 2009-11-07 00:21:12 UTC
  • mfrom: (36.1.3 client)
  • Revision ID: robertc@robertcollins.net-20091107002112-z0ob9ob0u3al35lw
Fixes for PEP-8 changes on bin/aws-status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    def showhide(self, reservation):
155
155
        active = 0
156
156
        for instance in reservation:
157
 
            if instance.instanceState == "running":
 
157
            if instance.instance_state == "running":
158
158
                active += 1
159
159
        self.set_tooltip("AWS Status - %d instances" % active)
160
160
        self.set_visible(active != 0)
162
162
 
163
163
    def shutdown_instances(self, reservation):
164
164
        d = self.client.terminate_instances(
165
 
            *[instance.instanceId for instance in reservation])
 
165
            *[instance.instance_id for instance in reservation])
166
166
        d.addCallbacks(self.on_activate, self.show_error)
167
167
 
168
168
    def queue_check(self):