Skip to content

Conversation

@Frencil
Copy link
Contributor

@Frencil Frencil commented Aug 21, 2015

Resolves Issue #65 by adding support for shared_link passwords.

@boxcla
Copy link

boxcla commented Aug 21, 2015

Hi @Frencil, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla

Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks!

@Frencil
Copy link
Contributor Author

Frencil commented Aug 21, 2015

CLA signed

@boxcla
Copy link

boxcla commented Aug 21, 2015

Verified that @Frencil has just signed the CLA. Thanks, and we look forward to your contribution.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct? I thought that not specifying a password creates the shared link with no password.

Also, can you mention here that setting passwords is a premium feature, as is https://github.com/box/box-python-sdk/blob/master/boxsdk/object/folder.py#L192

@Jeff-Meadows
Copy link
Contributor

LGTM with my 2 comments addressed.

- moved password argument to end of argument list
- updated param doc to be correct in the event of no password
- updated param doc to notify that this is a premium feature
@Frencil
Copy link
Contributor Author

Frencil commented Aug 21, 2015

Thanks for the feedback! FYI I see the Travis build failing just on the pypy environment because of this:

ImportError: No module named cryptography.hazmat.bindings._constant_time

FWIW this was one error I also had locally (before modifying anything) and couldn't figure out a solution for. Since none of the changes in this branch affected that part of the test coverage I decided to proceed anyway, but if anyone knows how to fix that I'd love to get it fixed locally too.

@Jeff-Meadows
Copy link
Contributor

The PyPy failures look like a regression in the cryptography module. I've opened an issue with that project pyca/cryptography#2290

Downgrading the package to version 0.9.3 with .tox/pypy/bin/pip install cryptography==0.9.3 --upgrade will allow the tests to pass locally.

Copy link
Contributor

Choose a reason for hiding this comment

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

Last thing - these 2 lines need to move down in the docstring as well!

@Frencil
Copy link
Contributor Author

Frencil commented Aug 21, 2015

Not sure how I missed that last one, thanks. =)

Jeff-Meadows added a commit that referenced this pull request Aug 25, 2015
Adding support for shared_link password parameter
@Jeff-Meadows Jeff-Meadows merged commit 0a541ed into box:master Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants