parameters: (self, context, **kw)
docstring: When we uninstall a tool, unregister it from the type provider.
docstring_summary: When we uninstall a tool, unregister it from the type provider.
docstring_tokens: When we uninstall a tool unregister it from the type provider .
function: def uninstall(self, context, **kw):
      """ When we uninstall a tool, unregister it from the type provider. """
      portal = context.getPortalObject()
      types_tool = portal.portal_types
      object_path = kw.get('object_path', None)
      if object_path is not None:
        object_keys = [object_path]
      else:
        object_keys = self._path_archive.keys()
      for tool_id in object_keys:
        types_tool.type_provider_list = tuple([ \
          x for x in types_tool.type_provider_list \
          if x != tool_id])
      PathTemplateItem.uninstall(self, context, **kw)
function_tokens: def uninstall ( self , context , * * kw ) : portal = context . getPortalObject ( ) types_tool = portal . portal_types object_path = kw . get ( 'object_path' , None ) if object_path is not None : object_keys = [ object_path ] else : object_keys = self . _path_archive . keys ( ) for tool_id in object_keys : types_tool . type_provider_list = tuple ( [ x for x in types_tool . type_provider_list if x != tool_id ] ) PathTemplateItem . uninstall ( self , context , * * kw )