Przeglądaj źródła

Variables defined outside init

Defined them inside init and added description.
Marta Marczykowska-Górecka 6 lat temu
rodzic
commit
0115c931d2
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      qubesmanager/firewall.py

+ 4 - 0
qubesmanager/firewall.py

@@ -156,6 +156,10 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel):
         file.close()
 
         self.fw_changed = False
+        self.allow = None # is the default policy allow or deny
+        self.temp_full_access_expire_time = None # temporary full access time
+        self.__vm = None # VM that the model applies to
+        self.__children = None # list of rules in the FW
 
     def sort(self, idx, order):
         from operator import attrgetter