#NEWLINE# def put( self , licenseName ) : #NEWLINE# #INDENT# data = self . getBodyAsJSON ( ) #NEWLINE# try : #NEWLINE# #INDENT# maxLic = data [ 'maxlic' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise Http404 ( "Missing entry : 'maxlic'" ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . dispatcher . licenseManager . setMaxLicensesNumber ( licenseName , maxLic ) #NEWLINE# self . writeCallback ( 'OK' )