equal
deleted
inserted
replaced
102 if restrictions: |
102 if restrictions: |
103 restrictions.drop_restrictions(event.principal_id) |
103 restrictions.drop_restrictions(event.principal_id) |
104 |
104 |
105 |
105 |
106 @adapter_config(context=IWfSharedContent, provides=IManagerRestrictions) |
106 @adapter_config(context=IWfSharedContent, provides=IManagerRestrictions) |
107 def SharedContentManagerRestrictions(context): |
107 def shared_content_manager_restrictions(context): |
108 """Shared tool manager restrictions""" |
108 """Shared tool manager restrictions""" |
109 tool = get_parent(context, IBaseSharedTool) |
109 tool = get_parent(context, IBaseSharedTool) |
110 if tool is not None: |
110 if tool is not None: |
111 return IManagerRestrictions(tool) |
111 return IManagerRestrictions(tool) |
112 |
112 |
113 |
113 |
114 @adapter_config(context=IBaseSharedTool, provides=IManagerRestrictionsFactory) |
114 @adapter_config(context=IBaseSharedTool, provides=IManagerRestrictionsFactory) |
115 def SharedToolManagerRestrictionsFactory(context): |
115 def shared_tool_manager_restrictions_factory(context): |
116 """Default shared tool manager restrictions factory""" |
116 """Default shared tool manager restrictions factory""" |
117 return SharedToolManagerRestrictionInfo |
117 return SharedToolManagerRestrictionInfo |