\r
def execute_command(self, _class=None, method=None,\r
command=None, args=None):\r
+ if args == None:\r
+ args = {}\r
+ if ('property' in self._c\r
+ and self.gui.config['selected command'] == command):\r
+ arg_names = [arg.name for arg in command.arguments]\r
+ for name,value in self._c['property'].get_values().items():\r
+ if name in arg_names:\r
+ args[name] = value\r
+ print 'executing', command.name, args\r
self.inqueue.put(CommandMessage(command, args))\r
results = []\r
while True:\r
for argument in command.arguments:\r
if argument.name == 'help':\r
continue\r
- self._c['property'].append_property(prop_from_argument(\r
- argument, curves=[], playlists=[])) # TODO: lookup playlists/curves\r
+ p = prop_from_argument(\r
+ argument, curves=[], playlists=[]) # TODO: lookup playlists/curves\r
+ if p == None:\r
+ continue # property intentionally not handled (yet)\r
+ self._c['property'].append_property(p)\r
+\r
self.gui.config['selected command'] = command # TODO: push to engine\r
\r
\r