def secure(self, func):
        '''Enforce authentication on a given method/verb
        and optionally check a given permission
        '''
        if isinstance(func, basestring):
            return self._apply_permission(Permission(RoleNeed(func)))
        elif isinstance(func, Permission):
            return self._apply_permission(func)
        else:
            return self._apply_secure(func)
Enforce authentication on a given method/verb
        and optionally check a given permission