Generate a descriptive string based on the permission name.

    For example: 'resource_Order_get'  ->  'Can GET order'

    todo: add support for the resource name to have underscores

def _get_permission_description(permission_name):
    """ Generate a descriptive string based on the permission name.

    For example: 'resource_Order_get'  ->  'Can GET order'

    todo: add support for the resource name to have underscores
    """

    parts = permission_name.split('_')
    parts.pop(0)
    method = parts.pop()
    resource = ('_'.join(parts)).lower()
    return 'Can %s %s' % (method.upper(), resource)