Hello,
I have recently downloaded and tried Plucker as an alternative to AvantGo -
mainly because of its ability to cope with local web pages on the hard disk.
First, I couldn't find an explination of the URL styntax of "plucker:"
Also, I have have trouble with pages with links of the form <A
HREF="file://c:\temp\index.html">Link</A> (on a Windows 2000 machine).
I had picked this exact format (absolute filename including the drive
letter) because it works on both IE and Mozilla, but the Plucker parser does
not seem to understand this format.
I think I have fixed this by changing the file Url.py but as I don't really
know how Python or the Plucker parse really work, this change should be
checked out before being inflicted on other people.
######################################################################
# Replacement for the urlparse lib, because this is buggy on Windows #
######################################################################
def windows_file_url_parse (url):
prot='file'
fragment=''
i = string.rfind(url, '#')
if i >= 0:
fragment = url[i+1:]
url = url[:i]
path=url
#New bit follows
if string.lower(path[0:5]) == 'file://':
path=path[7:]
#End of new bit
if string.lower(path[0:5]) == 'file:':
path=path[5:]
if ((string.upper(path[0:1]) >= 'A') and (string.upper(path[0:1]) <=
'Z')) and (path[1:2] == ':'):
path = string.upper(path[0:1]) + path[1:]
host=''
params=''
query=''
return prot, host, path, params, query, fragment
Hope this is helpful to someone!
Peter