Provide a custom Validate for OpInstanceMultiAlloc
authorRené Nussbaumer <rn@google.com>
Fri, 28 Sep 2012 09:17:08 +0000 (11:17 +0200)
committerRené Nussbaumer <rn@google.com>
Fri, 28 Sep 2012 13:05:45 +0000 (15:05 +0200)
commit9bc5ac44cd244690f5a16ddb01c747e25a07749a
tree28bd591cff6584a9cce49191da1247c2f2169f4f
parent2958c56e934f279cd2c60388fcc4252622938e0e
Provide a custom Validate for OpInstanceMultiAlloc

This is needed, as we're not strictly separating validation from
populating the defaults. We do this all in one function. If we now
receive a non complete OpInstanceCreate opcode in instances, we would
run into AttributeErrors on those.

So we run the validation + recursively on all instances opcodes.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/opcodes.py