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

Add analyisis script to zodbmigrate #10

Open
frisi opened this Issue Oct 5, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@frisi
Member

frisi commented Oct 5, 2018

Currently you need to use https://pypi.org/project/zodb.py3migrate/ to analyze existing objects in the ZODB and list classes with missing [zodbupdate.decode] mapping for attributes containing string values that could possibly break when converted to python3.

bin/zodb-py3migrate-analyze py2/var/filestorage/Data.fs -b py2/var/blobstorage -v

We might consider to put this functionality into zodbupdate so people dealing with python3 migration of their database do not need to setup/use a second tool.

@thefunny42

This comment has been minimized.

Member

thefunny42 commented Oct 5, 2018

This analyse is quite bad: it goes through the database by exploring the container API. It will not inspect anything that is not attach to the root folder with the container API. Please do not included it here. If you want an analyse script, create one that goes over all record in order not to forget anything.

I believe it should a different script and not an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment