15 |
15 |
16 def __init__(self, url="", title="", broken=False): |
16 def __init__(self, url="", title="", broken=False): |
17 """ |
17 """ |
18 Constructor |
18 Constructor |
19 |
19 |
20 @param url URL of the page (string) |
20 @param url URL of the page |
21 @param title title of the page (string) |
21 @type str |
22 @param broken flag indicating a broken connection (boolean) |
22 @param title title of the page |
|
23 @type str |
|
24 @param broken flag indicating a broken connection |
|
25 @type bool |
23 """ |
26 """ |
24 self.url = url |
27 self.url = url |
25 self.title = title |
28 self.title = title |
26 self.broken = broken |
29 self.broken = broken |
27 |
30 |
28 def __eq__(self, other): |
31 def __eq__(self, other): |
29 """ |
32 """ |
30 Special method implementing the equality operator. |
33 Special method implementing the equality operator. |
31 |
34 |
32 @param other reference to the other page object (Page) |
35 @param other reference to the other page object |
33 @return flag indicating equality (boolean) |
36 @type Page |
|
37 @return flag indicating equality |
|
38 @rtype bool |
34 """ |
39 """ |
35 return self.title == other.title and self.url == other.url |
40 return self.title == other.title and self.url == other.url |
36 |
41 |
37 def isValid(self): |
42 def isValid(self): |
38 """ |
43 """ |