--- a/skeleton/MANIFEST.in Mon Jan 05 15:44:33 2009 +0100
+++ b/skeleton/MANIFEST.in Mon Jan 05 16:43:54 2009 +0100
@@ -1,10 +1,5 @@
include *.py
-include ChangeLog
-recursive-include views *.py
-recursive-include entities *.py
-recursive-include sobjects *.py
-recursive-include schema Include *.py *.sql.postgres
recursive-include data external_resources *.gif *.png *.css *.ico *.js
recursive-include i18n *.pot *.po
recursive-include migration *.sql *.py depends.map
--- a/web/views/idownloadable.py Mon Jan 05 15:44:33 2009 +0100
+++ b/web/views/idownloadable.py Mon Jan 05 16:43:54 2009 +0100
@@ -11,7 +11,7 @@
from cubicweb.interfaces import IDownloadable
from cubicweb.common.mttransforms import ENGINE
from cubicweb.common.selectors import (one_line_rset, score_entity_selector,
- interface_selector)
+ interface_selector, contextprop_selector)
from cubicweb.web.box import EntityBoxTemplate
from cubicweb.web.views import baseviews
@@ -35,7 +35,7 @@
class DownloadBox(EntityBoxTemplate):
id = 'download_box'
- __selectors__ = (one_line_rset, interface_selector)
+ __selectors__ = (one_line_rset, interface_selector, contextprop_selector)
accepts_interfaces = (IDownloadable,)
order = 10
def cell_call(self, row, col, title=None, label=None, **kwargs):
@@ -121,10 +121,6 @@
return True
- def render_side_related(self, entity, siderelations):
- download_box(self.w, entity)
- super(IDownloadablePrimaryView, self).render_side_related(entity, siderelations)
-
class IDownloadableLineView(baseviews.OneLineView):
__selectors__ = (interface_selector,)
# don't kick default oneline view