#NEWLINE# def start_bundle( server , bundlename , options ) : #NEWLINE# #INDENT# ' curl -u admin:admin http://localhost:4505/system/console/bundles/org.apache.sling.scripting.jsp\n        -F action=start.' #NEWLINE# form_data = { #NEWLINE# #INDENT# 'action' : 'start' , #NEWLINE# #UNINDENT# } #NEWLINE# url = server . url ( '/system/console/bundles/{bundle}' . format ( bundle = bundlename ) ) #NEWLINE# log ( 'POSTing to service {}' . format ( url ) ) #NEWLINE# resp = requests . post ( url , auth = ( server . username , server . password ) , data = form_data ) #NEWLINE# if options . raw : #NEWLINE# #INDENT# sys . stdout . write ( '{}\n' . format ( resp . content ) )