|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
|
... |
|
... |
525 |
@property
|
525 |
@property
|
526 |
def attachments(self):
|
526 |
def attachments(self):
|
527 |
return self.attachment_class().query.find(dict(
|
527 |
return self.attachment_class().query.find(dict(
|
528 |
post_id=self._id, type='attachment'))
|
528 |
post_id=self._id, type='attachment'))
|
529 |
|
529 |
|
530 |
def add_multiple_attach(self, file_info):
|
530 |
def add_multiple_attachments(self, file_info):
|
531 |
if isinstance(file_info, list):
|
531 |
if isinstance(file_info, list):
|
532 |
map(self.add_attachment, file_info)
|
532 |
map(self.add_attachment, file_info)
|
533 |
else:
|
533 |
else:
|
534 |
self.add_attachment(file_info)
|
534 |
self.add_attachment(file_info)
|
535 |
|
535 |
|