import logging
+from .command import NullQueue
+
class QueueMessage (object):
def __str__(self):
log.debug('engine running %s' % msg.command.name)
msg.command.run(hooke, ui_to_command_queue, command_to_ui_queue,
**msg.arguments)
+
+ def run_command(self, hooke, command, arguments):
+ """Internal command execution.
+
+ This allows commands to execute sub commands and enables
+ :class:`~hooke.command_stack.CommandStack` execution.
+
+ Note that these commands *do not* have access to the usual UI
+ communication queues, so make sure they will not need user
+ interaction.
+ """
+ command.run(hooke, NullQueue(), NullQueue(), arguments)