Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_detailed_image_row(docker_image):
row = []
image_id = SelectableText(docker_image.short_id, maps=get_map())
row.append(image_id)
command = SelectableText(docker_image.command, maps=get_map(defult="main_list_ddg"))
row.append(command)
base_image = docker_image.base_image()
base_image_text = ""
if base_image:
base_image_text = base_image.short_name
base_image_w = SelectableText(base_image_text, maps=get_map())
row.append(base_image_w)
time = SelectableText(docker_image.display_time_created(),
maps=get_time_attr_map(docker_image.created))
row.append(time)
def get_detailed_container_row(docker_container):
row = []
container_id = SelectableText(docker_container.short_id)
row.append(container_id)
command = SelectableText(docker_container.command, get_map(defult="main_list_ddg"))
row.append(command)
image = SelectableText(docker_container.image_name())
row.append(image)
row.append(ContainerStatusWidget(docker_container))
name = SelectableText(docker_container.short_name)
row.append(name)
return row
def get_detailed_image_row(docker_image):
row = []
image_id = SelectableText(docker_image.short_id, maps=get_map())
row.append(image_id)
command = SelectableText(docker_image.command, maps=get_map(defult="main_list_ddg"))
row.append(command)
base_image = docker_image.base_image()
base_image_text = ""
if base_image:
base_image_text = base_image.short_name
base_image_w = SelectableText(base_image_text, maps=get_map())
row.append(base_image_w)
time = SelectableText(docker_image.display_time_created(),
maps=get_time_attr_map(docker_image.created))
row.append(time)
image_names_markup = get_image_names_markup(docker_image)
# urwid.Text([]) tracebacks
if image_names_markup:
image_names = SelectableText(image_names_markup)
else:
image_names = SelectableText("")
row.append(image_names)
return row
def get_detailed_image_row(docker_image):
row = []
image_id = SelectableText(docker_image.short_id, maps=get_map())
row.append(image_id)
command = SelectableText(docker_image.command, maps=get_map(defult="main_list_ddg"))
row.append(command)
base_image = docker_image.base_image()
base_image_text = ""
if base_image:
base_image_text = base_image.short_name
base_image_w = SelectableText(base_image_text, maps=get_map())
row.append(base_image_w)
time = SelectableText(docker_image.display_time_created(),
maps=get_time_attr_map(docker_image.created))
row.append(time)
image_names_markup = get_image_names_markup(docker_image)
# urwid.Text([]) tracebacks
if image_names_markup: