[gen] appyclass.getIcons now receives the nav param, in case one wants to reproduce, on an icon or a picture, the link to the element. For example, on a artist's site that presents its artworks, getIcons can be used to create a clickable link to a small version of the artwork, that leads to the full-size picture. Bugfix in result.pt (numbering of elements in the grid view).

This commit is contained in:
Gaetan Delannay 2013-03-10 08:29:53 +01:00
parent c5ec54f0e5
commit da4f502ddc
2 changed files with 19 additions and 14 deletions

View file

@ -915,10 +915,10 @@ class BaseMixin:
return None
return res
def getIcons(self):
def getIcons(self, navInfo=''):
'''Gets the icons that can be shown besides the title of an object.'''
appyObj = self.appy()
if hasattr(appyObj, 'getIcons'): return appyObj.getIcons()
if hasattr(appyObj, 'getIcons'): return appyObj.getIcons(navInfo)
return ''
def getSubTitle(self):