Skip to content

Module`s base objects serialization #359

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

Merged
merged 2 commits into from
Nov 3, 2017

Conversation

lnenov
Copy link
Contributor

@lnenov lnenov commented Nov 3, 2017

Addresses and closes #345

Make gitlab.Gitlab, base.GitlabObject and base.RESTObject instances pickle-able.

With current implementation of API v3 and v4 support, some instances
have properties of type module and are not serializable. Handle
these properties manually with setstate and getstate methods.
@lnenov lnenov force-pushed the base-objects-serialization branch from b0e70dc to 9b59adc Compare November 3, 2017 05:02
@gpocentek gpocentek merged commit 226e6ce into python-gitlab:master Nov 3, 2017
@gpocentek
Copy link
Contributor

Thank you!

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.

python-gitlab objects are not pickle-able
2 participants