code: def _get_all_permissions(opts, tools):
      
      perms = []
      for tool in tools:
          perms.append((_get_permission_codename(tool, opts), 'Can %s %s' % \
                  (tool.name, opts.verbose_name_plural)))
      return perms
docs: Returns (codename, name) for all tools.