����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from __future__ import print_function
from __future__ import unicode_literals
from . import View
import sys
class BlocksView(View):
"""
Assign ``blocks`` with this list
[
{
"title": "...",
"content": "some text",
},
...
]
"""
def render(self):
for index, block in enumerate(self.args.blocks):
if block["content"]:
if "title" in block:
self.print(block["title"])
self.print(block["content"], end="")
if self.next(index):
self.print("")
def next(self, index):
"""Return True if there is any nonempty block after given index"""
for block in self.args.blocks[index+1:]:
if block["content"]:
return True
return False
def has_content_and_title(self):
"""Return True if at least one block's content & title is not empty"""
for block in self.args.blocks[0:]:
if block["content"] and "title" in block.keys():
if block["title"]:
return True
return False
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| resource | Folder | 0755 |
|
|
| __init__.py | File | 517 B | 0644 |
|
| blocks.py | File | 1.03 KB | 0644 |
|
| default.py | File | 3.1 KB | 0644 |
|
| helper.py | File | 2.86 KB | 0644 |
|
| interactive.py | File | 854 B | 0644 |
|
| note_for_hidden.py | File | 743 B | 0644 |
|