Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Added support for EmbeddedBinary element #1545

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions boto/mturk/question.py
Expand Up @@ -108,6 +108,12 @@ def __init__(self, type, subtype, url, alt_text):
self.__dict__.update(vars())
del self.self

class EmbeddedBinary(object, XMLTemplate):
template = """<EmbeddedBinary><EmbeddedMimeType><Type>%(type)s</Type><SubType>%(subtype)s</SubType></EmbeddedMimeType><DataURL>%(url)s</DataURL><AltText>%(alt_text)s</AltText><Width>%(width)d</Width><Height>%(height)d</Height></EmbeddedBinary>"""

def __init__(self, type, subtype, url, alt_text, width, height):
self.__dict__.update(vars())
del self.self

class List(list):
"""A bulleted list suitable for OrderedContent or Overview content"""
Expand Down