don't display additional owners in metadata, this is confusing
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Tue, 25 Nov 2008 12:33:15 +0100
changeset 137 7e45cf48c2f1
parent 136 ff51a18c66a3
child 138 ed8a7efaadb6
don't display additional owners in metadata, this is confusing
web/views/baseviews.py
--- a/web/views/baseviews.py	Tue Nov 25 12:34:05 2008 +0100
+++ b/web/views/baseviews.py	Tue Nov 25 12:33:15 2008 +0100
@@ -378,6 +378,7 @@
         self.w(cut(entity.dc_title(),
                    self.req.property_value('navigation.short-line-size')))
 
+
 class MetaDataView(EntityView):
     """paragraph view of some metadata"""
     id = 'metadata'
@@ -400,19 +401,8 @@
             self.w(u'<span class="value">%s</span>'
                    % self.format_date(entity.creation_date))
         if entity.creator:
-            creatoreid = entity.creator.eid
             self.w(u'&nbsp;<span>%s</span> ' % _('by'))
             self.w(u'<span class="value">%s</span>' % entity.creator.name())
-        else:
-            creatoreid = None            
-        try:
-            owners = ','.join(u.name() for u in entity.owned_by
-                              if u.eid != creatoreid)
-            if owners:
-                self.w(u',&nbsp;<span>%s</span> ' % _('owned by'))
-                self.w(u'<span class="value">%s</span>' % owners)
-        except Unauthorized:
-            pass
         self.w(u'</div>')