code: def get_perm_names(cls, resource):
          
  
          return [cls.get_perm_name(resource, method) for method in cls.METHODS]
docs: Return all permissions supported by the resource.
  
          This is used for auto-generating missing permissions rows into
          database in syncdb.