def __init__(self, base, rspec="default", rdescript=None, rundo=None): ActionBase.__init__(self) self.state = control.nexus().state self.base = base self.rspec = rspec self.rdescript = rdescript self.rundo = rundo
def __init__(self, *args, **kwargs): """ Constructor arguments: - *args* (variable argument list of *str*'s) -- these strings are passed to subprocess.Popen() to start the application as a child process - *cwd* (*str*, default *None*) -- if not *None*, then start the application in this directory """ ActionBase.__init__(self) self._args = args if "cwd" in kwargs: self._cwd = kwargs.pop("cwd") else: self._cwd = None if kwargs: raise ArgumentError("Invalid keyword arguments: %r" % kwargs) # Expand any variables within path names. self._args = [self._interpret(a) for a in self._args] if self._cwd: self._cwd = self._interpret(self._cwd) self._str = str(", ".join(repr(a) for a in self._args))
def __init__(self, base, rspec="default", rdescript="unnamed command (RA)", rundo=None, show=True): ActionBase.__init__(self) self._nexus = None self.base = base self.rspec = rspec self.rdescript = rdescript self.rundo = rundo self.show = show
def __init__(self, execname, winname = None, timeout = 5.0): ActionBase.__init__(self) self.execname = execname if winname == None: self.winname = execname else: self.winname = winname self.timeout = timeout
def __init__(self, base, rspec="default", rdescript="unnamed command (RA)", rundo=None, show=True): ActionBase.__init__(self) self.state = control.nexus().state self.base = base self.rspec = rspec self.rdescript = rdescript self.rundo = rundo self.show = show
def __init__(self, proxy_action, local_action): '''proxy_action and remote_action may be dragonfly.ActionBase subclasses or callables.''' assert(hasattr(proxy_action, 'execute') or hasattr(proxy_action, '__call__')) assert(hasattr(local_action, 'execute') or hasattr(local_action, '__call__')) self._proxy_action = proxy_action self._local_action = local_action ActionBase.__init__(self)
def __init__(self, action, executables, negate=True): ''' action: another Dragonfly action executables: an array of strings, each of which is the name of an executable negate: if True, the action should not occur during any of the listed executables, if false the opposite ''' ActionBase.__init__(self) self.action = action self.executables = executables self.negate = negate
def __init__(self, proxy_action, local_action): '''proxy_action and remote_action may be dragonfly.ActionBase subclasses or callables.''' assert (hasattr(proxy_action, 'execute') or hasattr(proxy_action, '__call__')) assert (hasattr(local_action, 'execute') or hasattr(local_action, '__call__')) self._proxy_action = proxy_action self._local_action = local_action ActionBase.__init__(self)
def __init__(self, base, rspec="default", rdescript=None, rundo=None, show=True): ActionBase.__init__(self) self._nexus = None self.base = base self.rspec = rspec self.rdescript = rdescript self.rundo = rundo self.show = show
def __init__(self, text): ActionBase.__init__(self) self.__text = text
def __init__(self, *actions): ActionBase.__init__(self) self._actions = list(actions) self._str = ", ".join(str(a) for a in actions)
def __init__(self, action_if_no_text="", action_if_text=""): ActionBase.__init__(self) self.action_if_no_text = action_if_no_text self.action_if_text = action_if_text
def __init__(self, space=" ", remove_cr=False, same_is_okay=True): ActionBase.__init__(self) self.space = space self.remove_cr = remove_cr self.same_is_okay = same_is_okay
def __init__(self, name): self._name = name ActionBase.__init__(self)
def __init__(self, node_rule, node): ActionBase.__init__(self) self.node_rule = node_rule self.node = node
def __init__(self, *args, **kwargs): ActionBase.__init__(self) self.args = args self.kwargs = kwargs
def __init__(self, space=" ", remove_cr=False): ActionBase.__init__(self) self.space = space self.remove_cr = remove_cr
def __init__(self, command=""): ActionBase.__init__(self) self.command = command
def __init__(self, action): self.action = action ActionBase.__init__(self)
def __init__(self, grammarString, dclient, ruleHash): self.dclient = dclient self.grammarString = grammarString self.ruleHash = ruleHash ActionBase.__init__(self)
def __init__(self, default=None, actions=[]): self.actions = actions self.default = default ActionBase.__init__(self)
def __init__(self, title, timeout = 5.0): ActionBase.__init__(self) self.winname = title self.timeout = timeout
def __init__(self, name, action): ActionBase.__init__(self) self.name = name self.action = action
def __init__(self, execname): ActionBase.__init__(self) self.execname = execname
def __init__(self, action_id): ActionBase.__init__(self) self.action_id = action_id
def __init__(self, title, executable, timeout=5.0): ActionBase.__init__(self) self.title = title self.executable = executable self.timeout = timeout