Ticket #4251 (closed Bug: fixed)

Opened 7 years ago

Last modified 3 years ago

toLocalizedTime: SyntaxError: Unable to parse (Missing.Value,), {}

Reported by: tiran Owned by:
Priority: minor Milestone: 2.1
Component: Templates/CSS Version:
Severity: Keywords:
Cc:

Description

  • Module ZPublisher.Publish, line 113, in publish
    • Module ZPublisher.mapply, line 88, in mapply
    • Module ZPublisher.Publish, line 40, in call_object
    • Module Shared.DC.Scripts.Bindings, line 311, in call
    • Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    • Module Products.CMFCore.FSPageTemplate, line 188, in _exec
    • Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
    • Module Products.PageTemplates.PageTemplate, line 102, in pt_render <FSPageTemplate at /plone.org/folder_contents used for /plone.org/events/community>
    • Module TAL.TALInterpreter, line 190, in call
    • Module TAL.TALInterpreter, line 234, in interpret
    • Module TAL.TALInterpreter, line 671, in do_useMacro
    • 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 702, in do_defineSlot
    • 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 650, in do_defineMacro
    • Module TAL.TALInterpreter, line 234, in interpret
    • Module TAL.TALInterpreter, line 694, in do_defineSlot
    • Module TAL.TALInterpreter, line 234, in interpret
    • Module TAL.TALInterpreter, line 650, in do_defineMacro
    • 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 650, in do_defineMacro
    • 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 637, in do_condition
    • 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 613, in do_loop_tal
    • 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 702, in do_defineSlot
    • 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: file:CMFPlone/skins/plone_templates/folder_contents.pt Line 235, Column 20 Expression: <PythonExpr here.toLocalizedTime(item_modified, long_format=1)> Names:

{'container': <PloneSite at /plone.org>,

'context': <PloneFolder at /plone.org/events/community>, 'default': <Products.PageTemplates.TALES.Default instance at 0xb6da86cc>, 'here': <PloneFolder at /plone.org/events/community>, 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb28ae66c>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb6d3756c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb28ae66c>, 'request': <HTTPRequest, URL= http://localhost:8080/plone.org/events/community/folder_contents>, 'root': <Application at >, 'template': <FSPageTemplate at /plone.org/folder_contents used for /plone.org/events/community>, 'traverse_subpath': [], 'user': tiran}

traceback_info: here.toLocalizedTime(item_modified, long_format=1)

  • Module Python expression "here.toLocalizedTime(item_modified, long_format=1)", line 1, in <expression>
  • Module Products.CMFCore.FSPythonScript, line 108, in call
  • Module Shared.DC.Scripts.Bindings, line 311, in call
  • Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  • Module Products.CMFCore.FSPythonScript, line 163, in _exec
  • Module None, line 6, in toLocalizedTime <FSPythonScript at /plone.org/toLocalizedTime used for /plone.org/events/community> Line 6
  • Module Products.CMFPlone.TranslationServiceTool, line 72, in ulocalized_time
  • Module Products.CMFPlone.i18nl10n, line 69, in ulocalized_time
  • Module DateTime.DateTime, line 513, in init

SyntaxError: Unable to parse (Missing.Value,), {}

Change History

comment:1 Changed 7 years ago by longsleep

The toLocalizedTime should catch all errors which can be raised by the datetime module. I will fix that asap.

comment:2 Changed 7 years ago by tiran

  • Status changed from new to closed
  • Resolution set to fixed

fixed (with unit test)

comment:3 Changed 3 years ago by hannosch

  • Component changed from Visual and templates to Templates/CSS
Note: See TracTickets for help on using tickets.