#NEWLINE# def opt_local_ivo( self , local_ivo ) : #NEWLINE# #INDENT# if isinstance ( local_ivo , BINARY_TYPE ) : #NEWLINE# #INDENT# local_ivo = local_ivo . decode ( ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# parse_ivorn ( local_ivo ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise usage . UsageError ( ( 'Invalid IVOA identifier: %s\n  Required format: ivo://authorityID/resourceKey#local_ID' % local_ivo ) ) #NEWLINE# #UNINDENT# self [ 'local-ivo' ] = local_ivo