Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/tests for sdk remote #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added src/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions src/pydio/sdk/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

from exceptions import SystemSdkException, PydioSdkException, PydioSdkBasicAuthException, PydioSdkTokenAuthException
from pydio.utils.functions import hashfile
from .utils import upload_file_showing_progress
from pydio.sdk.utils import upload_file_showing_progress


class PydioSdk():
Expand All @@ -60,7 +60,7 @@ def basic_authenticate(self):
try:
tokens = json.loads(resp.content)
except ValueError as v:
return false
return False
keyring.set_password(self.url, self.user_id +'-token' , tokens['t']+':'+tokens['p'])
return tokens

Expand Down
Empty file added src/pydio/sdk/tests/__init__.py
Empty file.
Loading