#NEWLINE# def create_key( self , permissions , key = None , label = '' , parent = None ) : #NEWLINE# #INDENT# key = ( key or uuid . uuid4 ( ) . hex ) #NEWLINE# data = { #NEWLINE# #INDENT# 'permissions' : permissions , #NEWLINE# #UNINDENT# } #NEWLINE# if ( label and ( label is not None ) ) : #NEWLINE# #INDENT# data [ 'label' ] = label #NEWLINE# #UNINDENT# self . set_key ( key , key , parent = parent ) #NEWLINE# return key