コード例 #1
0
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._users_module = USERS.get_proxy()
     self._services_module = SERVICES.get_proxy()
     self._refresh_running = False
     self._manually_locked = False
コード例 #2
0
ファイル: root_password.py プロジェクト: wathsalav/anaconda
    def __init__(self, *args):
        NormalSpoke.__init__(self, *args)
        GUISpokeInputCheckHandler.__init__(self)

        self._users_module = USERS.get_observer()
        self._users_module.connect()

        self._services_module = SERVICES.get_observer()
        self._services_module.connect()
コード例 #3
0
ファイル: root_password.py プロジェクト: zhangsju/anaconda
    def __init__(self, *args):
        NormalSpoke.__init__(self, *args)
        GUISpokeInputCheckHandler.__init__(self)

        self._users_module = USERS.get_observer()
        self._users_module.connect()

        self._services_module = SERVICES.get_observer()
        self._services_module.connect()
コード例 #4
0
ファイル: password.py プロジェクト: LiuCan01/anaconda
    def on_back_clicked(self, button):
        # If the failed check is for password strength or non-ASCII
        # characters, add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict and failed_check == self._pwStrengthCheck:
            self._waiveStrengthClicks += 1
            self._pwStrengthCheck.update_check_status()
        elif failed_check == self._pwASCIICheck:
            self._waiveASCIIClicks += 1
            self._pwASCIICheck.update_check_status()

        # If neither the password nor the confirm field are set, skip the checks
        if (not self.pw.get_text()) and (not self.confirm.get_text()):
            for check in self.checks:
                check.enabled = False

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #5
0
ファイル: password.py プロジェクト: Jakuje/anaconda
    def on_back_clicked(self, button):
        # If the failed check is for password strength or non-ASCII
        # characters, add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict and failed_check == self._pwStrengthCheck:
            self._waiveStrengthClicks += 1
            self._pwStrengthCheck.update_check_status()
        elif failed_check == self._pwASCIICheck:
            self._waiveASCIIClicks += 1
            self._pwASCIICheck.update_check_status()

        # If neither the password nor the confirm field are set, skip the checks
        if (not self.pw.get_text()) and (not self.confirm.get_text()):
            for check in self.checks:
                check.enabled = False

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #6
0
ファイル: user.py プロジェクト: cyclefusion/anaconda
    def on_back_clicked(self, button):
        # If the failed check is for non-ASCII characters,
        # add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict and failed_check == self._pwStrengthCheck:
            self._waiveStrengthClicks += 1
            self._pwStrengthCheck.update_check_status()
        elif failed_check == self._pwASCIICheck:
            self._waiveASCIIClicks += 1
            self._pwASCIICheck.update_check_status()

        # If there is no user set, skip the checks
        if not self.username.get_text():
            for check in self.checks:
                check.enabled = False

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #7
0
    def on_back_clicked(self, button):
        # If the failed check is for non-ASCII characters,
        # add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict and failed_check == self._pwStrengthCheck:
            self._waiveStrengthClicks += 1
            self._pwStrengthCheck.update_check_status()
        elif failed_check == self._pwASCIICheck:
            self._waiveASCIIClicks += 1
            self._pwASCIICheck.update_check_status()

        # If there is no user set, skip the checks
        if not self.username.get_text():
            for check in self.checks:
                check.enabled = False

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #8
0
    def on_back_clicked(self, button):
        # If the failed check is for password strength or non-ASCII
        # characters, add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict:
            if failed_check == self._pwStrengthCheck:
                self.waive_clicks += 1
                self._pwStrengthCheck.update_check_status()
            elif failed_check == self._pwEmptyCheck:
                self.waive_clicks += 1
                self._pwEmptyCheck.update_check_status()
            elif failed_check:  # no failed checks -> failed_check == None
                failed_check.update_check_status()
        elif failed_check == self._pwASCIICheck:
            self.waive_ASCII_clicks += 1
            self._pwASCIICheck.update_check_status()

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #9
0
ファイル: root_password.py プロジェクト: jaymzh/anaconda
    def on_back_clicked(self, button):
        # If the failed check is for password strength or non-ASCII
        # characters, add a click to the counter and check again
        failed_check = next(self.failed_checks_with_message, None)
        if not self.policy.strict:
            if failed_check == self._pwStrengthCheck:
                self.waive_clicks += 1
                self._pwStrengthCheck.update_check_status()
            elif failed_check == self._pwEmptyCheck:
                self.waive_clicks += 1
                self._pwEmptyCheck.update_check_status()
            elif failed_check == self._pwASCIICheck:
                self.waive_ASCII_clicks += 1
                self._pwASCIICheck.update_check_status()
            elif failed_check:  # no failed checks -> failed_check == None
                failed_check.update_check_status()

        if GUISpokeInputCheckHandler.on_back_clicked(self, button):
            NormalSpoke.on_back_clicked(self, button)
コード例 #10
0
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._lock = self.data.rootpw.lock
     self._kickstarted = False
コード例 #11
0
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
コード例 #12
0
ファイル: user.py プロジェクト: cyclefusion/anaconda
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._oldweak = None
コード例 #13
0
ファイル: password.py プロジェクト: Jakuje/anaconda
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._kickstarted = False
コード例 #14
0
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._oldweak = None
コード例 #15
0
ファイル: password.py プロジェクト: LiuCan01/anaconda
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._kickstarted = False
コード例 #16
0
    def __init__(self, *args):
        NormalSpoke.__init__(self, *args)
        GUISpokeInputCheckHandler.__init__(self)

        self._users_module = USERS.get_proxy()
        self._password_is_required = True
コード例 #17
0
ファイル: user.py プロジェクト: jaymzh/anaconda
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
コード例 #18
0
ファイル: root_password.py プロジェクト: kkang-wr/anaconda
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._users_module = USERS.get_proxy()
コード例 #19
0
 def __init__(self, *args):
     NormalSpoke.__init__(self, *args)
     GUISpokeInputCheckHandler.__init__(self)
     self._lock = self.data.rootpw.lock
     self._kickstarted = False