Issue 7965: Problem with urlparse in Windows XP after a drag and drop (original) (raw)
Issue7965
Created on 2010-02-19 14:20 by PeterL, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg99571 - (view) | Author: Peter Landgren (PeterL) | Date: 2010-02-19 14:20 |
When I drag and drop a "file/url" from the file explorer in Windows to my application, I don't get a usable fil name: In the application I get from Windows file:///C:/Documents%20and%20Settings/Peter/Mina%20dokument/Mina%20bilder/BlueHole/IMG_1665.JPG After call to urlparser.urlparser() with this string as parameter I get back: /C:/Documents%20and%20Settings/Peter/Mina%20dokument/Mina%20bilder/BlueHole/IMG_1665.JPG Which is not a valid path in Windows However, It's easy to fix in my application. So, is this behavior known and are there any plans to change this? | ||
msg110322 - (view) | Author: Senthil Kumaran (orsenthil) * ![]() |
Date: 2010-07-14 19:43 |
The resultant url you get after doing a urlparse is not a Windows PATH, but url path component. So, when you use in relative manner by doing urljoin, you will see that the original will get constructed properly. So, there is really no a problem here. | ||
msg189259 - (view) | Author: Christopher Bare (Christopher.Bare) | Date: 2013-05-15 00:49 |
I see Senthil's point, but this tripped me up. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:57 | admin | set | github: 52213 |
2013-05-15 00:49:09 | Christopher.Bare | set | nosy: + Christopher.Baremessages: + |
2010-07-14 19:43:29 | orsenthil | set | status: open -> closedresolution: not a bugmessages: + stage: resolved |
2010-07-11 13:34:54 | BreamoreBoy | set | assignee: orsenthilversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6nosy: + orsenthil |
2010-02-19 14:20:10 | PeterL | create |