diff --git a/boards/models/post.py b/boards/models/post.py --- a/boards/models/post.py +++ b/boards/models/post.py @@ -57,6 +57,8 @@ TAG_NEXT = 'next' TAG_SIGNATURES = 'signatures' TAG_SIGNATURE = 'signature' TAG_CONTENT = 'content' +TAG_ATTACHMENTS = 'attachments' +TAG_ATTACHMENT = 'attachment' TYPE_GET = 'get' @@ -64,6 +66,7 @@ ATTR_VERSION = 'version' ATTR_TYPE = 'type' ATTR_NAME = 'name' ATTR_VALUE = 'value' +ATTR_MIMETYPE = 'mimetype' STATUS_SUCCESS = 'success' @@ -238,6 +241,9 @@ class PostManager(models.Manager): if not post.is_opening(): thread = et.SubElement(content_tag, TAG_THREAD) thread.text = str(post.get_thread().get_opening_post_id()) + else: + # TODO Output tags here + pass pub_time = et.SubElement(content_tag, TAG_PUB_TIME) pub_time.text = str(post.get_pub_time_epoch()) diff --git a/docs/samples/response_get.xml b/docs/samples/response_get.xml --- a/docs/samples/response_get.xml +++ b/docs/samples/response_get.xml @@ -16,6 +16,19 @@ Thirteen id1/12 12 + + + + TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0 + aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1 + c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0 + aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdl + LCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4= + +