#1918: [Win32] Drag'n'Drop not working
----------------------+-----------------------------------------------------
Reporter: Cas | Owner: Cas
Type: bug | Status: new
Priority: critical | Milestone: 1.3.4
Component: gtkui | Version: 1.3.3
Keywords: |
----------------------+-----------------------------------------------------
Description changed by Cas:
Old description:
> "file:///C:/The.torrent" becomes "C:\C:\The.torrent"
>
> Problem was introduced with this commit:
> http://git.deluge-torrent.org/deluge/commit/?h=1.3-stable&id=00900fef1c9
>
> Solution will be something like the code below but will need better
> testing to ensure both Linux and Windows compatibility.
>
> {{{
> if urlparse(arg).scheme == "file":
> os.path.abspath(url2pathname(urlparse(arg).path))
> else:
> path = os.path.abspath(arg)
> }}}
New description:
"!file:///C:/The.torrent" becomes "C:\C:\The.torrent"
Problem was introduced with this commit:
[http://git.deluge-torrent.org/deluge/commit/?h=1.3-stable&id=00900fef1c9
00900fef]
Solution will be something like the code below but will need better
testing to ensure both Linux and Windows compatibility.
{{{
if urlparse(arg).scheme == "file":
os.path.abspath(url2pathname(urlparse(arg).path))
else:
path = os.path.abspath(arg)
}}}
http://en.wikipedia.org/wiki/File_URI_scheme
--
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/1918#comment:1>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.