parameters: (self)
docstring: Returns the blockname for block to be updated
docstring_summary: Returns the blockname for block to be updated
docstring_tokens: Returns the blockname for block to be updated
function: def get_blockname(self):
      """ Returns the blockname for block to be updated """
      if self.info['complete']:
          return
      block_candidates = get_xml_candidates()
      if self.info['blockname'] is None:
          with SequenceCompleter(block_candidates):
              self.info['blockname'] = cli_input(
                  'Which block do you wish to update? : ')
      if not self.info['blockname'] or self.info['blockname'].isspace():
          raise ModToolException('Block name not specified!')
      if self.info['blockname'] not in block_candidates:
          choices = [x for x in block_candidates if self.info['blockname'] in x]
          if len(choices) > 0:
              click.secho("Suggested alternatives: " + str(choices), fg='yellow')
          raise ModToolException("The XML bindings does not exists!")
function_tokens: def get_blockname ( self ) : if self . info [ 'complete' ] : return block_candidates = get_xml_candidates ( ) if self . info [ 'blockname' ] is None : with SequenceCompleter ( block_candidates ) : self . info [ 'blockname' ] = cli_input ( 'Which block do you wish to update? : ' ) if not self . info [ 'blockname' ] or self . info [ 'blockname' ] . isspace ( ) : raise ModToolException ( 'Block name not specified!' ) if self . info [ 'blockname' ] not in block_candidates : choices = [ x for x in block_candidates if self . info [ 'blockname' ] in x ] if len ( choices ) > 0 : click . secho ( "Suggested alternatives: " + str ( choices ) , fg = 'yellow' ) raise ModToolException ( "The XML bindings does not exists!" )