parameters: (self, eventdata)
return_statement: return self._runcmd(cmd)
docstring: obj(eventdata) -> output string
  
          Executes external command, substituting event information into the
              command string. If call exits with a code not
              equal to 0, a MythError will be raised. The error code and
              stderr will be available in the exception and this object
              as attributes 'returncode' and 'stderr'.
docstring_summary: obj(eventdata) -> output string
docstring_tokens: obj ( eventdata ) - > output string
function: def command(self, eventdata):
          """
          obj(eventdata) -> output string
  
          Executes external command, substituting event information into the
              command string. If call exits with a code not
              equal to 0, a MythError will be raised. The error code and
              stderr will be available in the exception and this object
              as attributes 'returncode' and 'stderr'.
          """
          if self.path == '':
              return
          cmd = self.path
          if 'program' in eventdata:
              cmd = eventdata['program'].formatJob(cmd)
          for a in ('sender','cardid','secs'):
              if a in eventdata:
                  cmd = cmd.replace('%%%s%%' % a.upper(), eventdata[a])
          return self._runcmd(cmd)
function_tokens: def command ( self , eventdata ) : if self . path == '' : return cmd = self . path if 'program' in eventdata : cmd = eventdata [ 'program' ] . formatJob ( cmd ) for a in ( 'sender' , 'cardid' , 'secs' ) : if a in eventdata : cmd = cmd . replace ( '%%%s%%' % a . upper ( ) , eventdata [ a ] ) return self . _runcmd ( cmd )