|
a/Allura/allura/model/artifact.py |
|
b/Allura/allura/model/artifact.py |
|
... |
|
... |
127 |
ac = AppConfig.query.get(
|
127 |
ac = AppConfig.query.get(
|
128 |
_id=ref.artifact_reference['app_config_id'])
|
128 |
_id=ref.artifact_reference['app_config_id'])
|
129 |
app = ac.project.app_instance(ac) if ac else None
|
129 |
app = ac.project.app_instance(ac) if ac else None
|
130 |
if app:
|
130 |
if app:
|
131 |
artifact.set_context(app.repo)
|
131 |
artifact.set_context(app.repo)
|
132 |
if artifact not in related_artifacts:
|
132 |
if artifact not in related_artifacts and (getattr(artifact, 'deleted', False) == False):
|
133 |
related_artifacts.append(artifact)
|
133 |
related_artifacts.append(artifact)
|
134 |
return related_artifacts
|
134 |
return related_artifacts
|
135 |
|
135 |
|
136 |
def subscribe(self, user=None, topic=None, type='direct', n=1, unit='day'):
|
136 |
def subscribe(self, user=None, topic=None, type='direct', n=1, unit='day'):
|
137 |
from allura.model import Mailbox
|
137 |
from allura.model import Mailbox
|