|
a/Allura/allura/model/artifact.py |
|
b/Allura/allura/model/artifact.py |
|
... |
|
... |
60 |
{ str: str },
|
60 |
{ str: str },
|
61 |
if_missing=lambda:{c.app.config.tool_name:c.app.__version__})
|
61 |
if_missing=lambda:{c.app.config.tool_name:c.app.__version__})
|
62 |
acl = FieldProperty({str:[S.ObjectId]})
|
62 |
acl = FieldProperty({str:[S.ObjectId]})
|
63 |
tags = FieldProperty(S.Deprecated)
|
63 |
tags = FieldProperty(S.Deprecated)
|
64 |
labels = FieldProperty([str])
|
64 |
labels = FieldProperty([str])
|
65 |
references = FieldProperty(None)
|
65 |
references = FieldProperty(S.Deprecated)
|
66 |
backreferences = FieldProperty(None)
|
66 |
backreferences = FieldProperty(S.Deprecated)
|
67 |
app_config = RelationProperty('AppConfig')
|
67 |
app_config = RelationProperty('AppConfig')
|
68 |
|
68 |
|
69 |
@classmethod
|
69 |
@classmethod
|
70 |
def attachment_class(cls):
|
70 |
def attachment_class(cls):
|
71 |
raise NotImplementedError, 'attachment_class'
|
71 |
raise NotImplementedError, 'attachment_class'
|
|
... |
|
... |
552 |
pubdate = FieldProperty(datetime, if_missing=datetime.utcnow)
|
552 |
pubdate = FieldProperty(datetime, if_missing=datetime.utcnow)
|
553 |
description = FieldProperty(str)
|
553 |
description = FieldProperty(str)
|
554 |
unique_id = FieldProperty(str, if_missing=lambda:h.nonce(40))
|
554 |
unique_id = FieldProperty(str, if_missing=lambda:h.nonce(40))
|
555 |
author_name = FieldProperty(str, if_missing=lambda:c.user.get_pref('display_name') if hasattr(c, 'user') else None)
|
555 |
author_name = FieldProperty(str, if_missing=lambda:c.user.get_pref('display_name') if hasattr(c, 'user') else None)
|
556 |
author_link = FieldProperty(str, if_missing=lambda:c.user.url() if hasattr(c, 'user') else None)
|
556 |
author_link = FieldProperty(str, if_missing=lambda:c.user.url() if hasattr(c, 'user') else None)
|
557 |
artifact_reference = FieldProperty(None)
|
557 |
artifact_reference = FieldProperty(S.Deprecated)
|
558 |
|
558 |
|
559 |
|
559 |
|
560 |
@classmethod
|
560 |
@classmethod
|
561 |
def post(cls, artifact, title=None, description=None):
|
561 |
def post(cls, artifact, title=None, description=None):
|
562 |
"Create a Feed item"
|
562 |
"Create a Feed item"
|