Switch to unified view

a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
...
...
66
    references = FieldProperty(S.Deprecated)
66
    references = FieldProperty(S.Deprecated)
67
    backreferences = FieldProperty(S.Deprecated)
67
    backreferences = FieldProperty(S.Deprecated)
68
    app_config = RelationProperty('AppConfig')
68
    app_config = RelationProperty('AppConfig')
69
    # Not null if artifact originated from external import, then API ticket id
69
    # Not null if artifact originated from external import, then API ticket id
70
    import_id = FieldProperty(str, if_missing=None)
70
    import_id = FieldProperty(str, if_missing=None)
71
72
    def __json__(self):
73
        return dict(
74
            _id=str(self._id),
75
            mod_date=self.mod_date,
76
            labels=self.labels,
77
            related_artifacts=[a.url() for a in self.related_artifacts()],
78
            discussion_thread=self.discussion_thread,
79
            discussion_thread_url=self.discussion_thread.url(),
80
        )
71
81
72
    def parent_security_context(self):
82
    def parent_security_context(self):
73
        '''ACL processing should continue at the  AppConfig object. This lets
83
        '''ACL processing should continue at the  AppConfig object. This lets
74
        AppConfigs provide a 'default' ACL for all artifacts in the tool.'''
84
        AppConfigs provide a 'default' ACL for all artifacts in the tool.'''
75
        return self.app_config
85
        return self.app_config