do3cc <do3cc...@googlemail.com> added the comment:

Hi,

when you check out the branch and update to the old revision where I just
committed the test case, you see what happens, and what I expected. Your other
test cases don't trigger that exception.
I did it like that
svn up --revision=9820
and ran the tests, which did not return a wrong result but a traceback:

Failed example:
    print template.render(weight=32)
Exception raised:
    Traceback (most recent call last):
      File "/home/patrick/python/python-2.4.6/lib/python2.4/doctest.py", line
1248, in __run
        compileflags, 1) in test.globs
      File "<doctest i18n.txt[52]>", line 1, in ?
        print template.render(weight=32)
      File "/home/patrick/.virtualenvs/chameleon/src/chameleon/zpt/template.py",
line 17, in render
        return super(PageTemplate, self).render(*args, **kwargs)
      File
"/home/patrick/.virtualenvs/chameleon/src/chameleon/core/template.py", line 209,
in render
        return self.cook_and_render(kwargs, utils.emptydict, None, True)
      File
"/home/patrick/.virtualenvs/chameleon/src/chameleon/core/template.py", line 193,
in cook_and_render
        return func(econtext, rcontext)
      File "<string>", line 44, in render
    KeyError: 'amount'

A real life example is here:
http://dev.plone.org/plone/browser/plone.app.layout/trunk/plone/app/layout/viewlets/footer.pt?rev=35705#L24

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue157>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to