src/pyams_content/component/association/zmi/__init__.py
changeset 384 d433c8c46ec9
parent 367 392a5ec1b482
child 453 54b33f61a697
equal deleted inserted replaced
383:8409f13da5d0 384:d433c8c46ec9
   228     _header = _("Public title")
   228     _header = _("Public title")
   229 
   229 
   230     def getValue(self, obj):
   230     def getValue(self, obj):
   231         info = IAssociationInfo(obj, None)
   231         info = IAssociationInfo(obj, None)
   232         if info is not None:
   232         if info is not None:
   233             return info.user_title
   233             title = info.user_title
   234         else:
   234         else:
   235             return '--'
   235             title = '--'
       
   236         if info.user_icon:
       
   237             title += ' ' + info.user_icon
       
   238         return title
   236 
   239 
   237 
   240 
   238 @adapter_config(name='inner_name', context=(IAssociationTarget, IPyAMSLayer, AssociationsTable), provides=IColumn)
   241 @adapter_config(name='inner_name', context=(IAssociationTarget, IPyAMSLayer, AssociationsTable), provides=IColumn)
   239 class AssociationsTableInnerNameColumn(I18nColumn, GetAttrColumn):
   242 class AssociationsTableInnerNameColumn(I18nColumn, GetAttrColumn):
   240     """Associations table inner name column"""
   243     """Associations table inner name column"""