#2411: Open Folder action to remote client
------------------------------+---------------------------------
Reporter: eerorika | Owner:
Type: feature-request | Status: new
Priority: minor | Milestone: 1.3.x
Component: GTK-UI | Version: 1.3-stable (git)
Resolution: | Keywords: remote, open folder
------------------------------+---------------------------------
Comment (by Cas):
There are examples in the code of using a popup to add two strings, e.g.
Add host in connection manager.
Avoid regex where ever possible as it's an expensive call. You should be
able to do this in situ without a new common.py function:
{{{
if client.is_localhost:
...
elif self.gtkui_config["pathmapping"]:
try:
deluge.common.open_file(path_mapping[save_path])
except KeyError:
log.warning("No match found")
}}}
One caveat is to ensure no trailing slashes when storing the paths and
strip them from save_path before test.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2411#comment:6>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/groups/opt_out.