[ZCM] [ZC] 1627/ 1 Request "TALES: ?key acces fails if key is an integer"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Dec 17 09:15:25 EST 2004


Issue #1627 Update (Request) "TALES: ?key acces fails if key is an integer"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1627

==============================================================
= Request - Entry #1 by ajung on Dec 17, 2004 9:15 am

<tal:define tal:define="somedict python: {0:'1'};
                        key python: 0">

  <span tal:content="somedict/?key"/>
</tal:define>

fails:


Time
    2004/12/17 15:13:58.055 GMT+1
User Name (User Id)
    ajung (ajung)
Request URL
    http://zopyx.com/tmp/p1
Exception Type
    TypeError
Exception Value
    iteration over non-sequence

Traceback (innermost last):

    * Module ZPublisher.Publish, line 101, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module Shared.DC.Scripts.Bindings, line 306, in __call__
    * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
    * Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec
    * Module Products.PageTemplates.PageTemplate, line 96, in pt_render
      <ZopePageTemplate at /zopyx/tmp/p1>
    * Module TAL.TALInterpreter, line 190, in __call__
    * Module TAL.TALInterpreter, line 234, in interpret
    * Module TAL.TALInterpreter, line 409, in do_optTag_tal
    * Module TAL.TALInterpreter, line 394, in do_optTag
    * Module TAL.TALInterpreter, line 389, in no_tag
    * Module TAL.TALInterpreter, line 234, in interpret
    * Module TAL.TALInterpreter, line 484, in do_insertText_tal
    * Module Products.PageTemplates.TALES, line 227, in evaluateText
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: /zopyx/tmp/p1
      Line 4, Column 2
      Expression: standard:'somedict/?key'
      Names:


==============================================================



More information about the Zope-Collector-Monitor mailing list