Lines Matching refs:attachment_id
47 def display_position_for_attachment(self, attachment_id):
49 of the attachment_id in the queue. If the attachment is
51 if attachment_id in self.item_ids:
52 return self.item_ids.index(attachment_id) + 1
56 def _unguarded_add(key, attachment_id):
58 if attachment_id in work_items.item_ids:
60 work_items.item_ids.append(attachment_id)
64 def add_work_item(self, attachment_id):
65 db.run_in_transaction(self._unguarded_add, self.key(), attachment_id)
68 def _unguarded_remove(key, attachment_id):
70 if attachment_id in work_items.item_ids:
72 work_items.item_ids.remove(attachment_id)
76 def remove_work_item(self, attachment_id):
77 db.run_in_transaction(self._unguarded_remove, self.key(), attachment_id)