X Tutup
Skip to content

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

Merged
gpocentek merged 1 commit intopython-gitlab:masterfrom
chrwen-omicron:remove_next_url_from_cls_kwargs
May 15, 2016
Merged

Remove 'next_url' from kwargs before passing it to the cls constructor.#110
gpocentek merged 1 commit intopython-gitlab:masterfrom
chrwen-omicron:remove_next_url_from_cls_kwargs

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.

2 participants

X Tutup