salve a tutti, sto cercando di utilizzare PTProfiler per controllare un po' le performance del mio sito Plone. ho scaricato la versione SVN (1.4) e dopo averla attivata se vado nella homepage del mio portale, il profiler funziona correttamente. nel momento in cui però faccio clic su una delle sezioni interne del portale, Zope (2.9.8) mi ritorna:
2009-02-22 13:25:44 ERROR Zope.SiteErrorLog http://localhost:8080/IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html/document_view 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 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 195, in _exec Module Products.CMFCore.FSPageTemplate, line 134, in pt_render Module Products.PTProfiler.ProfilerPatch, line 79, in __patched_render__ Module Products.PageTemplates.PageTemplate, line 104, in pt_render - <FSPageTemplate at /IS-CMS/document_view used for /IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html> Module TAL.TALInterpreter, line 238, in __call__ Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 749, in do_useMacro Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 780, in do_defineSlot Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 728, in do_defineMacro Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 715, in do_condition Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 749, in do_useMacro Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 749, in do_useMacro Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 715, in do_condition Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 715, in do_condition Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 715, in do_condition Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 691, in do_loop_tal Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 457, in do_optTag_tal Module TAL.TALInterpreter, line 442, in do_optTag Module TAL.TALInterpreter, line 437, in no_tag Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 507, in do_setLocal_tal Module Products.PageTemplates.TALES, line 221, in evaluate - URL: file:InternalMessages/skins/InternalMessages/global_contentmenu.pt - Line 414, Column 28 - Expression: <PythonExpr getIconFor('object_buttons', editAction['id'], None)> - Names: {'container': <PloneSite at /IS-CMS>, 'context': <ATDocument at /IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html>, 'default': <Products.PageTemplates.TALES.Default instance at 0xb715fb6c>, 'here': <ATDocument at /IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html>, 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xe2f368c>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb718e58c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xe2f368c>, 'request': <HTTPRequest, URL=http://localhost:8080/IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html/document_view>, 'root': <Application at >, 'template': <FSPageTemplate at /IS-CMS/document_view used for /IS-CMS/promozione-del-territorio/turismo-e-cultura/index_html>, 'traverse_subpath': [], 'user': <PropertiedUser 'afittipaldi'>} Module Products.PTProfiler.ProfilerPatch, line 28, in __patched_call__ Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: getIconFor('object_buttons', editAction['id'], None) Module Python expression "getIconFor('object_buttons', editAction['id'], None)", line 1, in <expression> Module Products.CMFPlone.PloneTool, line 364, in getIconFor Module Products.CMFActionIcons.ActionIconsTool, line 184, in getActionIcon Module Products.CMFActionIcons.ActionIconsTool, line 95, in getIconURL Module Products.CMFCore.Expression, line 44, in __call__ Module Products.PTProfiler.ProfilerPatch, line 24, in __patched_call__ Module Products.PTProfiler.ProfilerPatch, line 48, in _get_name AttributeError: contexts ho provato a googlare un po', senza risultati. qualcuno è riuscito a utilizzare PTProfiler correttamente? grazie. :) saluti -- Antonio Fittipaldi http://www.python-it.org # il punto di riferimento italiano per gli appassionati di Python _______________________________________________ Plone-IT mailing list Plone-IT@lists.plone.org http://lists.plone.org/mailman/listinfo/plone-it http://www.nabble.com/Plone---Italy-f21728.html