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

RestAPI start download endpoint #2464

Merged
merged 7 commits into from
Jul 14, 2016
Merged

Conversation

brussee
Copy link
Member

@brussee brussee commented Jul 13, 2016

This problematic wrapper function is now unused: (a flag is used instead by @devos50)

    @waitForHandleAndSynchronize(True)
    def set_share_mode(self, share_mode):
        self.handle.set_share_mode(share_mode)

@brussee
Copy link
Member Author

brussee commented Jul 13, 2016

@lfdversluis Would you review this please?

@@ -304,7 +302,11 @@ def network_create_engine_wrapper(self, pstate, initialdlstatus=None, checkpoint

self.handle = self.ltmgr.add_torrent(self, atp)

if self.handle:
# DEBUG:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to remove this debug statement if it's stable ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I would like to invite @ardhipoetra to use this in his PR #2399.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted! :)

@devos50
Copy link
Contributor

devos50 commented Jul 13, 2016

@brussee good work 👍

@brussee
Copy link
Member Author

brussee commented Jul 13, 2016

@devos50 Thanks! You too!

@@ -185,20 +200,6 @@ def test_get_share_mode(self):
self.libtorrent_download_impl.handle.status().share_mode = True
self.assertTrue(self.libtorrent_download_impl.get_share_mode())

def test_set_share_mode(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you deleting this test as well as the wrapper function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will put it back, but use at own risk!

@brussee
Copy link
Member Author

brussee commented Jul 14, 2016

@whirm Ready.

@brussee brussee changed the title WIP: RestAPI start download endpoint READY: RestAPI start download endpoint Jul 14, 2016
@whirm whirm changed the title READY: RestAPI start download endpoint RestAPI start download endpoint Jul 14, 2016
@whirm whirm merged commit 6da0936 into Tribler:devel Jul 14, 2016
@brussee brussee deleted the start_download_infohash branch July 14, 2016 15:03
@brussee brussee mentioned this pull request Jul 14, 2016
122 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants