|
a/Allura/allura/model/artifact.py |
|
b/Allura/allura/model/artifact.py |
|
... |
|
... |
200 |
#
|
200 |
#
|
201 |
with h.push_config(c, project=projects[0]):
|
201 |
with h.push_config(c, project=projects[0]):
|
202 |
for p in projects:
|
202 |
for p in projects:
|
203 |
links = [
|
203 |
links = [
|
204 |
l for l in cls.query.find(dict(project_id=p._id, link=artifact_id))
|
204 |
l for l in cls.query.find(dict(project_id=p._id, link=artifact_id))
|
205 |
if ArtifactReference(l.artifact_reference).exists() ]
|
205 |
if ArtifactReference(l.artifact_reference).artifact ]
|
206 |
for l in links:
|
206 |
for l in links:
|
207 |
if app_id is None: return l
|
207 |
if app_id is None: return l
|
208 |
if app_id == l.mount_point: return l
|
208 |
if app_id == l.mount_point: return l
|
209 |
for l in links:
|
209 |
for l in links:
|
210 |
if app_id == l.tool_name: return l
|
210 |
if app_id == l.tool_name: return l
|