Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit to skip message escaping in flash messages #55

Closed
amol- opened this issue Oct 21, 2014 · 1 comment
Closed

Permit to skip message escaping in flash messages #55

amol- opened this issue Oct 21, 2014 · 1 comment

Comments

@amol-
Copy link
Member

amol- commented Oct 21, 2014

From mailing list it has been reported the need to place links into the flash messages, while this is not always desiderable it might make sense in some cases.

Suggested implementation on ML was:

def _render_static_version(self, container_id):
        payload = self.pop_payload()
        if not payload:
            return ''

        # HACK - THIS IS A PATCH
        if payload.get('no_escape'):
            payload['message'] = payload.get('message','')
        else:
            payload['message'] = escape(payload.get('message',''))

        payload['container_id'] = container_id
        return self.static_template.substitute(payload)
@amol-
Copy link
Member Author

amol- commented May 21, 2015

This should be covered by 4e4bdea

@amol- amol- closed this as completed May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant