Back to index

plone3  3.1.7
checkin.py
Go to the documentation of this file.
00001 ## Script (Python) "checkin"
00002 ##parameters=sci
00003 # Check in the object to a Zope version repository, disallowing changes.
00004 object = sci.object
00005 vt = object.portal_versions
00006 if vt.isCheckedOut(object):
00007   vt.checkin(object, sci.kwargs.get('comment', ''))