def GenerateCommand(self):
    cmds = [self._cocoadialog]
    # Cocoa Dialog uses "-" in run modes, Python classes can't use this char.
    runmode = self.__class__.__name__.lower().replace('_', '-')
    cmds.append(runmode)
    cmds.append('--string-output')
    if self.title:
      cmds.extend(['--title', self._title])
    if self.debug:
      cmds.append('--debug')
    if not self._timeout:
      if runmode == 'bubble':
        cmds.append('--no-timeout')  # only bubble supports this option.
    else:
      cmds.extend(['--timeout', self._timeout])
    if self._width:
      cmds.extend(['--width', self._width])
    if self._height:
      cmds.extend(['--height', self._height])
    return cmds
Preprocess data and metadata before storing them.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/cocoadialog.py/Dialog.GenerateCommand--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/blob_upload.py/Application._preprocess_data