Helpviewer/SpeedDial/Page.py

Sat, 19 Mar 2016 15:27:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Mar 2016 15:27:52 +0100
branch
6_1_x
changeset 4874
8dbca5b1f89c
parent 4632
ca310db386ed
child 5389
9b1c800daff3
permissions
-rw-r--r--

Fixed code to deal with another bug in Qt installer.
(grafted from d93871657c5df850f80ab5c16dce2028eab2be5f)

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

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

"""
Module implementing a structure to hold the data for a speed dial page.
"""


from __future__ import unicode_literals


class Page(object):
    """
    Class to hold the data for a speed dial page.
    """
    def __init__(self, url="", title="", broken=False):
        """
        Constructor
        
        @param url URL of the page (string)
        @param title title of the page (string)
        @param broken flag indicating a broken connection (boolean)
        """
        self.url = url
        self.title = title
        self.broken = broken
    
    def __eq__(self, other):
        """
        Special method implementing the equality operator.
        
        @param other reference to the other page object (Page)
        @return flag indicating equality (boolean)
        """
        return self.title == other.title and \
            self.url == other.url

eric ide

mercurial