def __iter__(self):
        choices = ()

        for block in blockregistry.get_block_list():
            choices += ((block.name, block.label), )

        return choices.__iter__()
Exemple #2
0
    def __iter__(self):
        choices = ()

        for block in blockregistry.get_block_list():
            choices += ((block.name, block.label),)

        return choices.__iter__()
Exemple #3
0
def get_all_blocks(retriever, context):
    context['allblocks'] = blockregistry.get_block_list()
def get_all_blocks(retriever, context):
    context["allblocks"] = blockregistry.get_block_list()