[ZPT] Re: [Zope-CMF] TALESError and Product Refresh

Florent Guillaume fg@nuxeo.com
27 Jul 2002 22:58:19 +0200

Actually I once saved a traceback that occured with Zope 2.5.1 (at the
end of this mail). Now that I read the code it's clear that back in Zope
2.5.1 it was conceivable that in pt_render _v_program could be missing
after the memory caches were flushed or after a refresh or something.

But this code has changed in Zope 2.6, and with delayed cooking now
_v_program is always correctly set (or there's a _v_error) so everything
is well. I'm confident this bug is fixed.


On Thu, 2002-07-25 at 01:00, Chris Withers wrote:
> Florent Guillaume wrote:
> > 
> > I've had something like that too, my diagnostic was that it seems that
> > in some cases Python Script from Filesystem Directory Views lost some of
> > their stuff. Never could reproduce it consistently though.
> We've had this at NIP too, likewise, we never could reproduce it :-(
> Restarting Zope seemed to make it go away, though...
> cheers,
> Chris

Error Type: AttributeError
Error Value: _v_program

Traceback (innermost last):
  File /home/zope/sit/lib/python/ZPublisher/Publish.py, line 150, in
  File /home/zope/sit/Products/Localizer/__init__.py, line 68, in
  File /home/zope/sit/lib/python/ZPublisher/Publish.py, line 114, in
  File /home/zope/sit/lib/python/Zope/__init__.py, line 159, in
    (Object: 10244524534145)
  File /home/zope/sit/lib/python/ZPublisher/Publish.py, line 98, in
  File /home/zope/sit/lib/python/ZPublisher/mapply.py, line 88, in
    (Object: help)
  File /home/zope/sit/lib/python/ZPublisher/Publish.py, line 39, in
    (Object: help)
  File /home/zope/sit/lib/python/Shared/DC/Scripts/Bindings.py, line
252, in __call__
    (Object: help)
  File /home/zope/sit/lib/python/Shared/DC/Scripts/Bindings.py, line
283, in _bindAndExec
    (Object: help)
line 210, in _exec
    (Object: help)
  File /home/zope/sit/Products/CMFCore/FSPageTemplate.py, line 124, in
    (Object: help)
  File /home/zope/sit/lib/python/Products/PageTemplates/PageTemplate.py,
line 83, in pt_render
    (Object: help)
    (Info: {'container': <CMFSite instance at 8d9db88>,
 'here': <ArreteDelegSigDocument instance at 8e38750>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x864802c>,
 'nothing': None,
 'options': {'args': ()},
 'request': ...,
 'root': <Application instance at 8eec5b8>,
 'template': <FSPageTemplate instance at 8e94348>,
 'traverse_subpath': [],
 'user': u1})
AttributeError: (see above)

Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com