def __call__(self, *args, **kwargs): if not is_bumblebee_feature_enabled(): raise NotFound set_preferred_listing_view('gallery') return self.template()
def __call__(self, *args, **kwargs): if is_bumblebee_feature_enabled(): set_preferred_listing_view('list') self.template = BoundPageTemplate(self.bumblebee_template, self) return super(Documents, self).__call__(self, *args, **kwargs)