Hi,
A couple of years ago I adapted a very old product from Tres Seaver, FSDump, to export app objects from a Z2 app to a Z4 instance (export/export didn't work).
Now, I would like to further adapt it to send ZODB app objects to a git repo (app was not converted to install from the file system).
One issue remains for my needs. I can't load the proxy property of a Python script. I'm dumping it like this (don't remember why I used aq_base):
if getattr(obj.aq_base, '_proxy_roles', None):
file.write('proxy=%s\n' % ','.join(obj._proxy_roles))
To load, this doesn't work:
if 'proxy' in props:
proxy = props.pop('proxy')
obj._proxy_roles = tuple(proxy.split(','))
The revised Zope Product is here: GitHub - ghiodor/Products.FSDump4 at load
I browsed Zope code but couldn't find a way to do it. Can you help please?