PipelineFX Forum

Qube! => SimpleCmds => Topic started by: pboucher on May 09, 2011, 05:28:44 PM

Title: Access reservations in postDialog callback of SimpleCmd
Post by: pboucher on May 09, 2011, 05:28:44 PM
How can I do what the subject of this topic mentions.

I can't find anything in the callback's cmd's package, properties or options or the callback's values.

Thanks.
Title: Re: Access reservations in postDialog callback of SimpleCmd
Post by: jburk on May 27, 2011, 07:41:29 PM
Which simpleCmd module is this?  The reservations should be available in the value dictionary.

This is from the mayabatch.py simplecmd.

Code: [Select]
(Pdb) pp values
{'_blocked': False,
 '_email_combo': '0,jburk',
 '_emailfailedframes_combo': '0,jburk',
 '_impersonate': '',
 'account': '',
 'agenda_timeout': -1,
 'callbacks': [],
 'cluster': '',
 'cpus': 1,
 'cwd': '',
 'dependency': '',
 'env': {},
 'flagsstring': '',
 'groups': '',
 'hostorder': '',
 'hosts': '',
 'kind': '',
 'label': '',
 'mailaddress': 'jburk',
 'name': 'Maya BatchRender (file) Job',
 'notes': '',
 'omitgroups': '',
 'omithosts': '',
 'package': {'-renderer': 'file',
             'range': '1-2',
             'scenefile': 'foo.ma',
             'simpleCmdType': 'Maya BatchRender (file)'},
 'pgrp': '',
 'priority': 5000,
 'prototype': 'cmdrange',
 'range': '1-2',
 'requirements': '',
 'reservations': 'foo=1, bar=2',
 'restrictions': '',
 'retrysubjob': -1,
 'retrywork': -1,
 'status': 'pending',
 'timeout': -1,
 'user': ''}
(Pdb) values['reservations']
'foo=1, bar=2'