Exemplo n.º 1
0
 def current_vol_row(self):
     if not self.current_pool():
         return
     return uihelpers.get_list_selection(self.widget("vol-list"))
Exemplo n.º 2
0
 def current_pool(self):
     row = uihelpers.get_list_selection(self.widget("pool-list"))
     if not row:
         return
     return self.conn.get_pool(row[0])