<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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]