|
a/Allura/allura/model/artifact.py |
|
b/Allura/allura/model/artifact.py |
|
... |
|
... |
217 |
|
217 |
|
218 |
class Feed(MappedClass):
|
218 |
class Feed(MappedClass):
|
219 |
class __mongometa__:
|
219 |
class __mongometa__:
|
220 |
session = project_orm_session
|
220 |
session = project_orm_session
|
221 |
name = 'artifact_feed'
|
221 |
name = 'artifact_feed'
|
222 |
indexes = [ 'pubdate' ]
|
222 |
indexes = [
|
|
|
223 |
'pubdate',
|
|
|
224 |
('artifact_ref.project_id', 'artifact_ref.mount_point') ]
|
223 |
|
225 |
|
224 |
_id = FieldProperty(S.ObjectId)
|
226 |
_id = FieldProperty(S.ObjectId)
|
225 |
artifact_reference = FieldProperty(ArtifactReferenceType)
|
227 |
artifact_reference = FieldProperty(ArtifactReferenceType)
|
226 |
title=FieldProperty(str)
|
228 |
title=FieldProperty(str)
|
227 |
link=FieldProperty(str)
|
229 |
link=FieldProperty(str)
|
|
... |
|
... |
474 |
class Snapshot(Artifact):
|
476 |
class Snapshot(Artifact):
|
475 |
class __mongometa__:
|
477 |
class __mongometa__:
|
476 |
session = artifact_orm_session
|
478 |
session = artifact_orm_session
|
477 |
name='artifact_snapshot'
|
479 |
name='artifact_snapshot'
|
478 |
unique_indexes = [ ('artifact_class', 'artifact_id', 'version') ]
|
480 |
unique_indexes = [ ('artifact_class', 'artifact_id', 'version') ]
|
|
|
481 |
indexes = [ ('artifact_id', 'version') ]
|
479 |
|
482 |
|
480 |
_id = FieldProperty(S.ObjectId)
|
483 |
_id = FieldProperty(S.ObjectId)
|
481 |
artifact_id = FieldProperty(S.ObjectId)
|
484 |
artifact_id = FieldProperty(S.ObjectId)
|
482 |
artifact_class = FieldProperty(str)
|
485 |
artifact_class = FieldProperty(str)
|
483 |
version = FieldProperty(S.Int, if_missing=0)
|
486 |
version = FieldProperty(S.Int, if_missing=0)
|