#2296: TemplateAssertionError: no test named 'mapping'
-------------------+--------------------
Reporter:  dustin  |       Owner:
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:  0.8.7
 Version:  master  |  Resolution:
Keywords:          |
-------------------+--------------------

Comment (by dustin):

 {{{
 #! patch
 commit cf4309e4ae34f37d2a11b473dc5886335abea896
 Author: Dustin J. Mitchell <[email protected]>
 Date:   Sat May 12 10:07:34 2012 -0500

     add a 'mapping' test for Jinja

     This makes the template changes in c977f04d work.

 diff --git a/master/buildbot/status/web/base.py
 b/master/buildbot/status/web/base.py
 index 5e8902c..87050b3 100644
 --- a/master/buildbot/status/web/base.py
 +++ b/master/buildbot/status/web/base.py
 @@ -514,6 +514,8 @@ def createJinjaEnv(revlink=None,
 changecommentlink=None,

      env.install_null_translations() # needed until we have a proper i18n
 backend

 +    env.tests['mapping'] = lambda obj : isinstance(obj, dict)
 +
      env.filters.update(dict(
          urlencode = urllib.quote,
          email = emailfilter,
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2296#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to