From c19a05c355760e1e0782ccb434eae4459baaf4cd Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 17 Dec 2012 21:28:10 +0100 Subject: small api changes --- module/Api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/Api.py') diff --git a/module/Api.py b/module/Api.py index d8e7c537e..8422a10a0 100644 --- a/module/Api.py +++ b/module/Api.py @@ -90,7 +90,7 @@ urlmatcher = re.compile(r"((https?|ftps?|xdcc|sftp):((//)|(\\\\))+[\w\d:#@%/;$() stateMap = { DownloadState.All: frozenset(getattr(DownloadStatus, x) for x in dir(DownloadStatus) if not x.startswith("_")), DownloadState.Finished : frozenset((DownloadStatus.Finished, DownloadStatus.Skipped)), - DownloadState.Unfinished : None, + DownloadState.Unfinished : None, # set below DownloadState.Failed : frozenset((DownloadStatus.Failed, DownloadStatus.TempOffline, DownloadStatus.Aborted)), DownloadState.Unmanaged: None, #TODO } @@ -171,6 +171,11 @@ class Api(Iface): """pyLoad Core version """ return self.core.version + @RequirePerm(Permission.All) + def getWSAddress(self): + """Gets and address for the websocket based on configuration""" + # TODO + @RequirePerm(Permission.All) def statusServer(self): """Some general information about the current status of pyLoad. -- cgit v1.2.3