[Framework-Team] Re: Performance — as usual

Alexander Limi limi at plone.org
Mon Nov 13 05:16:47 UTC 2006


On Sun, 12 Nov 2006 20:57:17 -0800, Alexander Limi  
<limi at plone.org> wrote:

> *goes to check more in-depth with PTProfiler*

PTProfiler seems to be broken with Plone 3.0 — probably because Zope 2.10  
uses the Zope 3 implementation of Page Templates now — anybody know if  
this is hard to fix? (Traceback when loading a page after enabling  
PTProfiler below, hi to Philipp and Guido, maybe you know what this is? :)

PTProfiler is a must-have tool for finding slowdowns in application code,  
and it would suck if we couldn't make use of it with Zope 2.10.


Traceback (innermost last):
   Module ZPublisher.Publish, line 115, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 41, in call_object
   Module Shared.DC.Scripts.Bindings, line 313, in __call__
   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
   Module Products.CMFCore.FSPageTemplate, line 198, in _exec
   Module Products.CMFCore.FSPageTemplate, line 137, in pt_render
   Module Products.PTProfiler.ProfilerPatch, line 65, in __patched_render__
   Module Products.PageTemplates.PageTemplate, line 89, in pt_render
   Module zope.pagetemplate.pagetemplate, line 117, in pt_render
    - Warning: Macro expansion failed
    - Warning: exceptions.KeyError: 'scripts'
   Module zope.tal.talinterpreter, line 271, in __call__
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 891, in do_useMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 536, in do_optTag_tal
   Module zope.tal.talinterpreter, line 521, in do_optTag
   Module zope.tal.talinterpreter, line 516, in no_tag
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 891, in do_useMacro
   Module zope.tal.talinterpreter, line 346, in interpret
   Module zope.tal.talinterpreter, line 590, in do_setGlobal_tal
   Module zope.tales.tales, line 696, in evaluate
    - URL:  
file:/Volumes/Work/Users/limi/Projects/Plone/3.0/Products/CMFPlone/skins/plone_templates/global_defines.pt
    - Line 8, Column 0
    - Expression: <PythonExpr template_id==view_template_id>
    - Names:
       {'container': <PloneSite at /3.0>,
        'context': <ATDocument at /3.0/front-page>,
        'default': <object object at 0x40530>,
        'here': <ATDocument at /3.0/front-page>,
        'loop': {},
        'nothing': None,
        'options': {'args': ()},
        'repeat': <Products.PageTemplates.Expressions.SafeMapping object at  
0x5ec1120>,
        'request': <HTTPRequest,  
URL=http://localhost:8080/3.0/front-page/document_view>,
        'root': <Application at >,
        'template': <FSPageTemplate at /3.0/document_view used for  
/3.0/front-page>,
        'traverse_subpath': [],
        'user': <SpecialUser 'Anonymous User'>}
   Module Products.PTProfiler.ProfilerPatch, line 22, in __patched_call__
   Module Products.PTProfiler.ProfilerPatch, line 49, in _get_expr
AttributeError: 'PythonExpr' object has no attribute 'expr'


-- 
_____________________________________________________________________

      Alexander Limi · Chief Architect · Plone Solutions · Norway

  Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

       Plone Co-Founder · http://plone.org · Connecting Content
   Plone Foundation · http://plone.org/foundation · Protecting Plone
 





More information about the Framework-Team mailing list