Nick Davis wrote:
Duncan Mortimer wrote:

get_transaction().commit()

Which results in...
-c:1: DeprecationWarning: This will be removed in ZODB 3.6:
   use transaction.get() instead of get_transaction().

Yes this is deprecated but still works - for future proofing you might want one the newer command.

Add the line "import transaction" to the top of your script to make the newer one. It was that missing, which made it not work for you before.



Sorry - I can't type  ;-)

correction:

Yes this is deprecated but still works - for future proofing you might
want the newer command.

Add the line  "import transaction" to the top of your script to make the
newer one work. It was that missing, which made it not work for you before.



_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to