I want to load a file from the file system and create a PageTemplate object. What I have is:
zpt = PageTemplate() zpt.id = fname with open(fullpath, mode='r') as zptfile: zpt.write(zptfile.read()) folder._setObject(fname, zpt, set_owner=0)
However, that creates a broken object. And if I remove set_owner=0, I get
AttributeError: 'PageTemplate' object has no attribute 'manage_fixupOwnershipAfterAdd'
How can I create the ZPT object? (Zope 4)