src/pyams_content/component/paragraph/pictogram.py
changeset 625 abd143a83a07
parent 586 28445044f6e3
child 841 d50743e69693
equal deleted inserted replaced
624:f5753401062a 625:abd143a83a07
    76             del self.pictogram
    76             del self.pictogram
    77 
    77 
    78     @volatile_property
    78     @volatile_property
    79     def pictogram(self):
    79     def pictogram(self):
    80         table = query_utility(IPictogramTable)
    80         table = query_utility(IPictogramTable)
    81         return table.get(self.pictogram_name)
    81         if table is not None:
       
    82             return table.get(self._pictogram_name)
    82 
    83 
    83 
    84 
    84 @adapter_config(context=IPictogramItem, provides=IFormContextPermissionChecker)
    85 @adapter_config(context=IPictogramItem, provides=IFormContextPermissionChecker)
    85 def pictogram_item_permission_checker(context):
    86 def pictogram_item_permission_checker(context):
    86     """Pictogram item permission checker"""
    87     """Pictogram item permission checker"""