Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: plugins
Commits on Jun 30, 2015
  1. Merge pull request #156 from nicdumz/patch-1

    authored
    Fix typo.
  2. @nicdumz

    Fix typo.

    nicdumz authored
Commits on Jun 10, 2015
Commits on May 16, 2015
  1. Version 0.8.3

    authored
  2. Adds context parameter to filters.

    authored
    This can be used to pass additional data to the filter. This can be
    used, for example, in a mako template filter where you need both the
    template text and the template context.
Commits on May 15, 2015
  1. 0.8.2 release

    authored
Commits on Mar 18, 2013
  1. @douglatornell
  2. @douglatornell
  3. @douglatornell
Commits on Mar 15, 2013
  1. @douglatornell
Commits on Dec 24, 2012
  1. @douglatornell
  2. @douglatornell

    Merge pull request #140 from ncw/plugins

    douglatornell authored
    Add allow_reuse_address to server stop occasional "Address already in use" errors
Commits on Dec 21, 2012
  1. @ncw
Commits on Nov 22, 2012
  1. @douglatornell

    Merge pull request #137 from zsoldosp/patch-1

    douglatornell authored
    better error messages for undefined variables in mako templates
Commits on Nov 17, 2012
  1. @douglatornell
  2. @douglatornell
Commits on Nov 16, 2012
  1. @douglatornell
  2. @douglatornell
Commits on Nov 14, 2012
  1. @zsoldosp

    better error messages for undefined variables in mako templates

    zsoldosp authored
    The following template (mako_undefined.html.mako)
    <%
        mistyeped_variable = 'some value'
    %>
    Hello, this is the mistyped_variable value ${mistyped_variable}
    --- EOF ---
    
    
    
    
    In non strict mode produces a similar error
    
    
    
    
    Traceback (most recent call last):
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\blogofile-0.8b1-py2.7.egg\blogofile\template.py", line 157, in render
        rendered = self.mako_template.render(**self)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\template.py", line 412, in render
        return runtime._render(self, self.callable_, args, data)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 766, in _render
        **_kwargs_for_callable(callable_, data))
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 798, in _render_context
        _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 824, in _exec_template
        callable_(context, *args, **kwargs)
      File "memory:0x2d9da30", line 4, in render_body
        Hello, this is the mistyped_variable value ${mistyped_variable}
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 194, in __str__
        raise NameError("Undefined")
    NameError: Undefined
    
    
    
    
    After adding strict_undefined=True, the error message is the following, which is more useful IMO:
    
    
    
    
    Traceback (most recent call last):
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\blogofile-0.8b1-py2.7.egg\blogofile\template.py", line 159, in render
        rendered = self.mako_template.render(**self)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\template.py", line 412, in render
        return runtime._render(self, self.callable_, args, data)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 766, in _render
        **_kwargs_for_callable(callable_, data))
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 798, in _render_context
        _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
      File "c:\lib\Python\2.7.1-x86\lib\site-packages\mako-0.7.2-py2.7.egg\mako\runtime.py", line 824, in _exec_template
        callable_(context, *args, **kwargs)
      File "memory:0x2c70250", line 1, in render_body
        <%
    NameError: 'mistyped_variable' is not defined
    
    
    
    
    
    
    
    
    --- DISCLAIMERS --
    * This commit was made via the github web interface
    * I've tested it locally using the installed the 0.81b version, not github HEAD
    ** even then, I have not tested the second line of modification, only the first 
    ** eventually I get around to setting up a blogofile development environment though
    * Nonetheless, I thought in this case a pull requests might be easier than to open an issue and wait for someone (me) to eventually fix it
Commits on Nov 12, 2012
  1. @douglatornell
Commits on Nov 8, 2012
  1. @douglatornell
  2. @douglatornell
Commits on Nov 5, 2012
  1. @douglatornell

    Remove version pinning as much as possible.

    douglatornell authored
    textile is still pinned to textile==2.1.4-p3k for Python 3.
Commits on Oct 14, 2012
  1. @douglatornell
Commits on Oct 13, 2012
  1. @douglatornell
  2. @douglatornell

    Cleanup

    douglatornell authored
  3. @douglatornell

    Fix typo.

    douglatornell authored
  4. @douglatornell
Commits on Oct 8, 2012
  1. @douglatornell
  2. @douglatornell
  3. @douglatornell

    Prep for 0.8b1 release.

    douglatornell authored
Commits on Sep 19, 2012
  1. @douglatornell
Commits on Sep 6, 2012
  1. @douglatornell
  2. @douglatornell
Something went wrong with that request. Please try again.