I can add/remove objects to Zope in debug shell easily, like app.manage_addProduct['OFS.Folder'].manage_addFolder('test'). However I can’t figure out a way to persist the changes to the database.
Am I missing something obvious? TIA,
PS: I tried app._p_changed=1 but after exiting the shell using exit(), the changes hadn’t been persisted.
You must commit the transaction, see: http://www.zodb.org/zodbbook/transactions.html