#NEWLINE# def create( self , **kwargs ) : #NEWLINE# #INDENT# new = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in kwargs . items ( ) : #NEWLINE# #INDENT# if ( key in CREATION_ATTRIBUTES ) : #NEWLINE# #INDENT# new [ key ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exceptions . InvalidAttribute ( ( 'Key must be in %s' % ',' . join ( CREATION_ATTRIBUTES ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _create ( self . _path ( ) , new )