def __iter__(self): choices = () for block in blockregistry.get_block_list(): choices += ((block.name, block.label), ) return choices.__iter__()
def __iter__(self): choices = () for block in blockregistry.get_block_list(): choices += ((block.name, block.label),) return choices.__iter__()
def get_all_blocks(retriever, context): context['allblocks'] = blockregistry.get_block_list()
def get_all_blocks(retriever, context): context["allblocks"] = blockregistry.get_block_list()