web/views/idownloadable.py
branchtls-sprint
changeset 1554 3a3263df6cdd
parent 1498 2c6eec0b46b9
child 1639 375c857aa0f5
--- a/web/views/idownloadable.py	Thu Apr 30 00:41:10 2009 +0200
+++ b/web/views/idownloadable.py	Thu Apr 30 00:41:52 2009 +0200
@@ -94,19 +94,11 @@
         self.w(u'<a href="%s">%s</a>' % (url, html_escape(title or entity.dc_title())))
 
 
-
 class IDownloadablePrimaryView(baseviews.PrimaryView):
     __select__ = implements(IDownloadable)
-    # XXX File/Image attributes but this is not specified in the IDownloadable interface
-    skip_attrs = baseviews.PrimaryView.skip_attrs + ('data', 'name')
 
-    def render_entity_title(self, entity):
-        self.w(u'<h1>%s %s</h1>'
-               % (entity.dc_type().capitalize(),
-                  html_escape(entity.dc_title())))
-
-    def render_entity_attributes(self, entity, siderelations):
-        super(IDownloadablePrimaryView, self).render_entity_attributes(entity, siderelations)
+    def render_entity_attributes(self, entity):
+        super(IDownloadablePrimaryView, self).render_entity_attributes(entity)
         self.w(u'<div class="content">')
         contenttype = entity.download_content_type()
         if contenttype.startswith('image/'):
@@ -123,10 +115,6 @@
                 self.w('<div class="error">%s</div>' % msg)
         self.w(u'</div>')
 
-    def is_side_related(self, rschema, eschema):
-        """display all relations as side related"""
-        return True
-
 
 class IDownloadableLineView(baseviews.OneLineView):
     __select__ = implements(IDownloadable)