Skip to content
Snippets Groups Projects
Commit cfe86e011713 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

summary primary view method is deprecated in 3.10

parent 12fe2b633c0c
No related branches found
No related tags found
No related merge requests found
"""Specific views for links
:organization: Logilab
:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......@@ -21,7 +21,7 @@
"""embed action interface"""
return self.entity.url
for attr in ('title', 'url', 'embed', 'description'):
for attr in ('title', 'url', 'embed'):
uicfg.primaryview_section.tag_attribute(('Link', attr), 'hidden')
uicfg.autoform_field_kwargs.tag_attribute(('Link', 'url'),
......@@ -38,9 +38,6 @@
self.w(u'<h1><span class="etype">%s</span> %s</h1>'
% (entity.dc_type().capitalize(), title))
def summary(self, entity):
return entity.view('reledit', rtype='description')
class LinkOneLineView(baseviews.OneLineView):
__select__ = is_instance('Link')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment