Return all permissions supported by the resource.

        This is used for auto-generating missing permissions rows into
        database in syncdb.

def get_perm_names(cls, resource):
        """ Return all permissions supported by the resource.

        This is used for auto-generating missing permissions rows into
        database in syncdb.
        """

        return [cls.get_perm_name(resource, method) for method in cls.METHODS]