コード例 #1
0
 def attachments(self):
     atts = self.attachment_class().query.find(
         dict(app_config_id=self.app_config_id,
              artifact_id=self._id,
              type='attachment')).all()
     return utils.unique_attachments(atts)
コード例 #2
0
ファイル: discuss.py プロジェクト: vclisunlang/allura
 def attachments(self):
     atts = self.attachment_class().query.find(dict(
         post_id=self._id, type='attachment')).all()
     return utils.unique_attachments(atts)
コード例 #3
0
ファイル: artifact.py プロジェクト: apache/allura
 def attachments(self):
     atts = self.attachment_class().query.find(dict(
         app_config_id=self.app_config_id, artifact_id=self._id, type='attachment')).all()
     return utils.unique_attachments(atts)