Skip to content

Module`s base objects serialization#359

Merged
gpocentek merged 2 commits intopython-gitlab:masterfrom
lnenov:base-objects-serialization
Nov 3, 2017
Merged

Module`s base objects serialization#359
gpocentek merged 2 commits intopython-gitlab:masterfrom
lnenov:base-objects-serialization

Conversation

@lnenov
Copy link
Copy Markdown
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
Copy Markdown
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