Skip to content

Mako 0.3.4 incompatible with App Engine due to markupsafe #151

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

Until 0.3.3 Mako was compatible with appengine.

Then 0.3.4 came, and Mako is not compatible any more.

The solution: Don't assume markupsafe is installed. It markupsafe is not installed, just fall backwards to the original html escape code.

http://groups.google.com/group/mako-discuss/browse_thread/thread/ab80a9ccd7fc2f0e/699889fbab6fc29a?lnk=gst

+try:
+    import markupsafe
+    def html_escape(string):
+        return markupsafe.escape(string)
+except:
+    html_escape = legacy_html_escape

Fh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions