Commit f1352168 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[views] update to cw 3.8 api

parent cf2f431590b2
......@@ -47,4 +47,5 @@ __depends_cubes__ = {}
__depends__ = {'cubicweb': '>= 3.6.0'}
__use__ = ()
__recommend__ = ()
__recommends_cubes__ = {}
......@@ -47,8 +47,8 @@ class ExternalUriComponent(component.EntityVComponent):
class ClassifiedAdPrimaryView(primary.PrimaryView):
__select__ = primary.PrimaryView.__select__ & implements('ClassifiedAd')
def render_entity_relations(self, entity, siderelations=None):
super(ClassifiedAdPrimaryView, self).render_entity_relations(entity, siderelations)
def render_entity_relations(self, entity):
super(ClassifiedAdPrimaryView, self).render_entity_relations(entity)
if entity.has_image:
self.w(u'<div><img style="max-height: 100px" src="%s" /></div>' % entity.has_image[0].uri)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment