Back to index

plone3  3.1.7
checkout.py
Go to the documentation of this file.
00001 ## Script (Python) "checkout"
00002 ##parameters=sci
00003 # Check out the object from a repository, allowing changes.
00004 #
00005 # For workflows that control staging, it makes sense to call this script
00006 # before all transitions.
00007 object = sci.object
00008 vt = object.portal_versions
00009 if not vt.isCheckedOut(object):
00010   vt.checkout(object)