Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: plugins
Commits on Mar 18, 2013
  1. Doug Latornell
  2. Doug Latornell
  3. Doug Latornell
Commits on Mar 15, 2013
  1. Doug Latornell
Commits on Dec 24, 2012
  1. Doug Latornell
  2. Doug Latornell

    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. Nick Craig-Wood
Commits on Nov 22, 2012
  1. Doug Latornell

    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. Doug Latornell
  2. Doug Latornell
Commits on Nov 16, 2012
  1. Doug Latornell
  2. Doug Latornell
Commits on Nov 14, 2012
  1. Peter Zsoldos

    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. Doug Latornell
Commits on Nov 8, 2012
  1. Doug Latornell
  2. Doug Latornell
Commits on Nov 5, 2012
  1. Doug Latornell

    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. Doug Latornell
Commits on Oct 13, 2012
  1. Doug Latornell
  2. Doug Latornell

    Cleanup

    douglatornell authored
  3. Doug Latornell

    Fix typo.

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

    Prep for 0.8b1 release.

    douglatornell authored
Commits on Sep 19, 2012
  1. Doug Latornell
Commits on Sep 6, 2012
  1. Doug Latornell
  2. Doug Latornell
Commits on Sep 5, 2012
  1. Doug Latornell
  2. Doug Latornell
Commits on Sep 3, 2012
  1. Doug Latornell
Commits on Sep 2, 2012
  1. Doug Latornell

    Fix template lookup order re: emigmacurry/blogofile_blog#13

    douglatornell authored
    Thanks to Ravikiran Rajagopal for help sorting out this issue.
Commits on Aug 31, 2012
  1. Doug Latornell
  2. Doug Latornell

    Update change log.

    douglatornell authored
Commits on Aug 30, 2012
  1. Doug Latornell
Something went wrong with that request. Please try again.