Beispiel #1
0
 def __init__(self, client, parent):
     self.qhttpoutobject = QHttpOutObject.getInstance()
     FullFeaturedScrollArea.__init__(self, client, parent)
     self.client = client
     self.mainwindow = parent
     self.buildInterface()
     self.setViewData()
Beispiel #2
0
    def __init__(self, client, parent):
        if not EDENWALL:
            raise NuConfModuleDisabled("snmpd")
        self._module_disabled = False
        self.qsnmpdobject = QSnmpdObject.getInstance()
        self.main_window = parent
        FullFeaturedScrollArea.__init__(self, client, parent)

        self.client = client
        self._modified = False
        self._not_modifying = False
Beispiel #3
0
    def __init__(self, client, parent):
        #Parent constructor
        self.config = None
        self.auth_page = None
        self.group_page = None
        self.auth_configs = {}
        self.group_configs = {}
        self.mainwindow = parent
        self._module_disabled = False
        FullFeaturedScrollArea.__init__(self, client, parent)

        self.selected_auth = LDAP
        self.auth_configs[self.selected_auth] = LDAPOrg()
        self.selected_group = LDAP
        self.group_configs[self.selected_group] = LDAPOrg()
Beispiel #4
0
    def __init__(self, client, parent):
        self.auth_page = None
        self.group_page = None
        self.auth_configs = {}
        self.group_configs = {}
        self.mainwindow = parent

        self.node_status_label = QLabel()   # status of current node (active / inactive)
        self.link_status_label = QLabel() # status of dedicaced link
        self.interface_label = QLabel()
        self.activity_label = QLabel()
        self.last_error_text = QTextEdit()
        self.last_error_text.setReadOnly(True)
        self.last_error_text.setMaximumHeight(100)
        self.type_label = QLabel()
        self.join = None

        self.link_state = None
        self.ha_last_date = None

        self.version = self.mainwindow.init_call('ha', 'getComponentVersion')

        FullFeaturedScrollArea.__init__(self, client, parent)
        self.missing_upgrades = []

        # create timer only if HA activated
        if self.__ha_type() != ENOHA:
            self.timer = Timer(
                self.setViewData,
                REFRESH_INTERVAL_MILLISECONDS,
                self.mainwindow.keep_alive.thread,
                self
                )
        else:
            self.timer = None

        self.force_join = QAction(QIcon(":/icons/force_join"), tr("Force joining secondary"), self)
        self.connect(self.force_join, SIGNAL('triggered(bool)'), self.joinSecondary)
        self.force_takeover = QAction(QIcon(":/icons/ha_takeover"), tr("Force to become active"), self)
        self.connect(self.force_takeover, SIGNAL('triggered(bool)'), self.takeover)

        buttons = [self.force_join, self.force_takeover]
        self.contextual_toolbar = ToolBar(buttons, name=tr("High Availability"))
Beispiel #5
0
 def __init__(self, client, parent=None):
     self.__disabled = False
     self.cached_states = None
     if not EDENWALL:
         raise NuConfModuleDisabled("Site2site")
     FullFeaturedScrollArea.__init__(self, client, parent)
Beispiel #6
0
 def setModified(self, is_modified):
     FullFeaturedScrollArea.setModified(self, is_modified)
     if is_modified:
         QHAObject.getInstance().post_modify()