(cls, request)
return cls(form_dict)
Build a WTForm from request data and add CSRF token.

        Args:
            request: Flask request object as a werkzeug request proxy.

        Returns:
            A filled out WTForm form. Instance of timesketch.lib.forms.
Build a WTForm from request data and add CSRF token.
Build a WTForm from request data and add CSRF token .
def build(cls, request):
        """Build a WTForm from request data and add CSRF token.

        Args:
            request: Flask request object as a werkzeug request proxy.

        Returns:
            A filled out WTForm form. Instance of timesketch.lib.forms.
        """
        form_dict = MultiDict(request.json)
        form_dict['csrf_token'] = request.headers.get('X-CSRFToken')
        return cls(form_dict)
def build ( cls , request ) : form_dict = MultiDict ( request . json ) form_dict [ 'csrf_token' ] = request . headers . get ( 'X-CSRFToken' ) return cls ( form_dict )