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

Remove 'next_url' from kwargs before passing it to the cls constructor. #110

Merged

Conversation

chrwen-omicron
Copy link
Contributor

I had troubles iterating through all projects and changing some settings. The save method failed and I figured out that the 'next_url' attribute is still set and used in the _construct_url method.

This is an attempt to fix this, I might have missed something ...

The 'next_url' argument causes problems in the _construct_url method if it
doesn't belong there. E.g. if you list all projects, change an attribute
of a project and then try to save it, the _construct_url will use the
'next_url' from the list method and the save will fail.
@gpocentek gpocentek merged commit 05dd8dc into python-gitlab:master May 15, 2016
@gpocentek
Copy link
Contributor

Looks good, thank you!

@chrwen-omicron
Copy link
Contributor Author

You're welcome. Keep up the good work!

@chrwen-omicron chrwen-omicron deleted the remove_next_url_from_cls_kwargs branch May 17, 2016 07:56
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.

None yet

2 participants