0

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.

BahmanM
  • 1,420
  • 10
  • 18

1 Answers1

2

You must commit the transaction, see: http://www.zodb.org/zodbbook/transactions.html

sdupton
  • 1,869
  • 10
  • 9