/[navidoc]/navidoc/navidoc/link/__init__.py
ViewVC logotype

Diff of /navidoc/navidoc/link/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by humppake, Thu May 22 10:52:21 2003 UTC revision 1.17 by humppake, Fri May 23 13:41:40 2003 UTC
# Line 80  class Link (navidoc.Element): Line 80  class Link (navidoc.Element):
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.
# Line 95  class Link (navidoc.Element): Line 96  class Link (navidoc.Element):
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("#")

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26