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