src/eric7/WebBrowser/Passwords/LoginForm.py

Sun, 18 Dec 2022 19:33:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 18 Dec 2022 19:33:46 +0100
branch
eric7
changeset 9624
b47dfa7a137d
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
permissions
-rw-r--r--

Refactored the Utilities and Globals modules in order to enhance the maintainability.

# -*- coding: utf-8 -*-

# Copyright (c) 2012 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing a data structure for login forms.
"""

from PyQt6.QtCore import QUrl


class LoginForm:
    """
    Class implementing a data structure for login forms.
    """

    def __init__(self):
        """
        Constructor
        """
        self.url = QUrl()
        self.name = ""
        self.postData = ""

    def isValid(self):
        """
        Public method to test for validity.

        @return flag indicating a valid form (boolean)
        """
        return not self.url.isEmpty() and bool(self.postData)

eric ide

mercurial