moo.core.models.verb.set_indirect_objects
- moo.core.models.verb.set_indirect_objects(verb, ispec)
Replace the indirect_objects M2M set on verb from an ispec dict.
Called from @edit after updating verb code/dspec. Runs natively outside the RestrictedPython sandbox so that M2M write operations are not exposed.
- Parameters:
verb – the Verb instance to update
ispec – dict of {prep_or_specifier: specifier} as produced by parse_shebang, or None/empty to clear all indirect objects