I think the examples should read:
qb.workerlock({}, 'host.processor_0=1,host.processor_1=1', name='myhost')
qb.workerlock({}, 'host.processor_all=0', name='myhost')
qb.workerlock({}, 'host.processor_all=1', name='myhost')
qb.workerlock({}, 'host.lock_mode=aggressive,host.processor_all=watchdog 30', name='myhost')
otherwise the method definition should read:
def workerlock(filters=None, lockingString='host.processor_all=1', name=None):
if filters.has_key('name') == False and name == None:
raise SomeException
...