80 |
link = link[0] |
link = link[0] |
81 |
if self.target == None or \ |
if self.target == None or \ |
82 |
not os.path.isfile(self.target): |
not os.path.isfile(self.target): |
83 |
self.target = os.path.normpath(slashify(redirection_path) + link) |
if link.startswith('http://'): self.target = link |
84 |
|
else: self.target = os.path.normpath(slashify(redirection_path) + link) |
85 |
|
|
86 |
""" |
""" |
87 |
Final check and setting attributes. |
Final check and setting attributes. |
96 |
file is the current file. Could also parse |
file is the current file. Could also parse |
97 |
<title> from the file and set it to title. |
<title> from the file and set it to title. |
98 |
""" |
""" |
99 |
|
if self.target.startswith('http://'): |
100 |
|
self.error = 0 |
101 |
|
return |
102 |
|
|
103 |
path = self.target |
path = self.target |
104 |
|
|
105 |
tmp = path.rfind("#") |
tmp = path.rfind("#") |