コード例 #1
0
    def __iter__(self):
        choices = ()

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

        return choices.__iter__()
コード例 #2
0
ファイル: models.py プロジェクト: hpoul/sct-communitytools
    def __iter__(self):
        choices = ()

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

        return choices.__iter__()
コード例 #3
0
def get_all_blocks(retriever, context):
    context['allblocks'] = blockregistry.get_block_list()
コード例 #4
0
def get_all_blocks(retriever, context):
    context["allblocks"] = blockregistry.get_block_list()