Lines Matching refs:Attachment
34 from model.attachment import Attachment
42 def _build_bubble(self, queue, attachment):
43 queue_status = attachment.status_for_queue(queue)
46 "attachment_id": attachment.id,
47 "queue_position": attachment.position_in_queue(queue),
48 "state": attachment.state_from_queue_status(queue_status) if queue_status else "none",
54 attachment = Attachment(int(attachment_id))
55 bubbles = [self._build_bubble(queue, attachment) for queue in self._queues_to_display]