관리-도구
편집 파일: blocks.cpython-39.opt-1.pyc
a "e � @ s@ d dl mZ d dl mZ ddlmZ d dlZG dd� de�ZdS )� )�print_function)�unicode_literals� )�ViewNc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) � BlocksViewzh Assign ``blocks`` with this list [ { "title": "...", "content": "some text", }, ... ] c C s^ t | jj�D ]L\}}|d rd|v r2| �|d � | j|d dd� | �|�r| �d� qd S )N�content�title� )�end)� enumerate�args�blocks�print�next��self�index�block� r �7/usr/lib/python3.9/site-packages/tracer/views/blocks.py�render s zBlocksView.renderc C s, | j j|d d� D ]}|d r dS qdS )z<Return True if there is any nonempty block after given indexr Nr TF)r r r r r r r s zBlocksView.nextc C s<