equal
deleted
inserted
replaced
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""" |