Switch to unified view

a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
...
...
556
            'pubdate',
556
            'pubdate',
557
            ('artifact_ref.project_id', 'artifact_ref.mount_point') ]
557
            ('artifact_ref.project_id', 'artifact_ref.mount_point') ]
558
558
559
    _id = FieldProperty(S.ObjectId)
559
    _id = FieldProperty(S.ObjectId)
560
    ref_id = ForeignIdProperty('ArtifactReference')
560
    ref_id = ForeignIdProperty('ArtifactReference')
561
    neighborhood_id = ForeignIdProperty('Neighborhood')
561
    project_id = ForeignIdProperty('Project')
562
    project_id = ForeignIdProperty('Project')
562
    app_config_id = ForeignIdProperty('AppConfig')
563
    app_config_id = ForeignIdProperty('AppConfig')
564
    tool_name=FieldProperty(str)
563
    title=FieldProperty(str)
565
    title=FieldProperty(str)
564
    link=FieldProperty(str)
566
    link=FieldProperty(str)
565
    pubdate = FieldProperty(datetime, if_missing=datetime.utcnow)
567
    pubdate = FieldProperty(datetime, if_missing=datetime.utcnow)
566
    description = FieldProperty(str)
568
    description = FieldProperty(str)
567
    unique_id = FieldProperty(str, if_missing=lambda:h.nonce(40))
569
    unique_id = FieldProperty(str, if_missing=lambda:h.nonce(40))
...
...
577
        if title is None:
579
        if title is None:
578
            title='%s modified by %s' % (idx['title_s'], c.user.get_pref('display_name'))
580
            title='%s modified by %s' % (idx['title_s'], c.user.get_pref('display_name'))
579
        if description is None: description = title
581
        if description is None: description = title
580
        item = cls(
582
        item = cls(
581
            ref_id=artifact.index_id(),
583
            ref_id=artifact.index_id(),
584
            neighborhood_id=artifact.app_config.project.neighborhood_id,
582
            project_id=artifact.app_config.project_id,
585
            project_id=artifact.app_config.project_id,
583
            app_config_id=artifact.app_config_id,
586
            app_config_id=artifact.app_config_id,
587
            tool_name=artifact.app_config.tool_name,
584
            title=title,
588
            title=title,
585
            description=description,
589
            description=description,
586
            link=artifact.url())
590
            link=artifact.url())
587
        return item
591
        return item
588
592