#NEWLINE# def save_services( self , service_dict ) : #NEWLINE# #INDENT# for s in service_dict : #NEWLINE# #INDENT# if ( not s ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# host = s [ 'host' ] #NEWLINE# service = s [ 'service' ] #NEWLINE# if s . has_key ( 'start' ) : #NEWLINE# #INDENT# start = s [ 'start' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# start = 0 #NEWLINE# #UNINDENT# if s . has_key ( 'end' ) : #NEWLINE# #INDENT# end = s [ 'end' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# end = 0 #NEWLINE# #UNINDENT# if s . has_key ( 'uniq' ) : #NEWLINE# #INDENT# uniq = s [ 'uniq' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# uniq = 0 #NEWLINE# #UNINDENT# self . services . create ( host = host , service = service , start = start , end = end , uniq = uniq )