Skip to content
Snippets Groups Projects
  1. Feb 21, 2011
    • Mike Bayer's avatar
      - use inlined getargspec · 4737c269
      Mike Bayer authored
      - The "output encoding" now defaults
        to "ascii", whereas previously
        it was set to None.  This has the effect
        of FastEncodingBuffer being used internally
        by default when render() is called, instead
        of cStringIO or StringIO, which are
        slower, but allow bytestrings with
        unknown encoding to pass right through.
        It is of course not recommended to use
        bytestrings of unknown encoding. Usage of
        the "disable_unicode" mode also requires
        that output_encoding be set to None.
      4737c269
  2. Jan 19, 2011
  3. Nov 13, 2010
  4. Nov 12, 2010
  5. Nov 10, 2010
    • Mike Bayer's avatar
      - The range of Python identifiers that · ca21a535
      Mike Bayer authored
        are considered "undefined", meaning they
        are pulled from the context, has been
        trimmed back to not include variables
        declared inside of expressions (i.e. from
        list comprehensions), as well as
        in the argument list of lambdas.  This
        to better support the strict_undefined
        feature.
      ca21a535
    • Mike Bayer's avatar
      - New flag on Template, TemplateLookup - · c8598ab6
      Mike Bayer authored
        strict_undefined=True, will cause
        variables not found in the context to
        raise a NameError immediately, instead of
        defaulting to the UNDEFINED value.
      c8598ab6
  6. Oct 20, 2010
  7. Aug 11, 2010
  8. Jun 30, 2010
    • Mike Bayer's avatar
      - The <%namespace> tag allows expressions · 4b408e5f
      Mike Bayer authored
        for the `file` argument, i.e. with ${}.
        The `context` variable, if needed,
        must be referenced explicitly.
        [ticket:141]
      
      - Fixed previously non-covered regular
        expression, such that using a ${} expression
        inside of a tag element that doesn't allow
        them raises a CompileException instead of
        silently failing.
      4b408e5f
  9. Jun 22, 2010
    • Mike Bayer's avatar
      - Now using MarkupSafe for HTML escaping, · a0354c3e
      Mike Bayer authored
        i.e. in place of cgi.escape().  Faster
        C-based implementation and also escapes
        single quotes for additional security.
        Supports the __html__ attribute for
        the given expression as well.
      
        When using "disable_unicode" mode,
        a pure Python HTML escaper function
        is used which also quotes single quotes.
      
        Note that Pylons by default doesn't
        use Mako's filter - check your
        environment.py file.
      a0354c3e
    • Mike Bayer's avatar
      - Fixed call to "unicode.strip" in · 808dde14
      Mike Bayer authored
        exceptions.text_error_template which
        is not Py3k compatible.  [ticket:137]
      808dde14
  10. May 31, 2010
    • Mike Bayer's avatar
      - Added conditional to RichTraceback · 3ef596c2
      Mike Bayer authored
        such that if no traceback is passed
        and sys.exc_info() has been reset,
        the formatter just returns blank
        for the "traceback" portion.
        [ticket:135]
      - some long line cleanup
      3ef596c2
  11. Apr 28, 2010
    • Mike Bayer's avatar
      - When a .py is being created, the tempfile · c4abbd84
      Mike Bayer authored
        where the source is stored temporarily is
        now made in the same directory as that of
        the .py file.  This ensures that the two
        files share the same filesystem, thus
        avoiding cross-filesystem synchronization
        issues.  Thanks to Charles Cazabon.
      c4abbd84
  12. Apr 17, 2010
  13. Apr 13, 2010
  14. Mar 24, 2010
  15. Mar 11, 2010
  16. Mar 07, 2010
  17. Mar 05, 2010
  18. Mar 04, 2010
  19. Mar 02, 2010
    • Mike Bayer's avatar
      - ensure lru threading test doesn't run · 004aca56
      Mike Bayer authored
      - Source code escaping has been simplified.
        In particular, module source files are now
        generated with the Python "magic encoding
        comment", and source code is passed through
        mostly unescaped, except for that code which
        is regenerated from parsed Python source.
        This fixes usage of unicode in
        <%namespace:defname> tags.  [ticket:99]
      004aca56
  20. Feb 05, 2010
  21. Jan 22, 2010
  22. Nov 01, 2009
  23. Sep 22, 2009
  24. Jun 28, 2009
  25. Apr 19, 2009
  26. Mar 20, 2009
    • Mike Bayer's avatar
      - When Mako creates subdirectories in which · 43b362dc
      Mike Bayer authored
        to store templates, it uses the more
        permissive mode of 0775 instead of 0750,
        helping out with certain multi-process
        scenarios. Note that the mode is always
        subject to the restrictions of the existing
        umask. [ticket:101]
      43b362dc
  27. Mar 19, 2009
Loading