collective / collective.fingerpointing

Keep track of different events and write them down to an audit log.
https://pypi.org/project/collective.fingerpointing/
5 stars 5 forks source link

TypeError on View Audit Log #91

Open jianaijun opened 6 years ago

jianaijun commented 6 years ago

While trying 'View Audit Log' I get this error: `2018-09-14 11:45:30 INFO CMFQuickInstallerTool Multiple extension profiles found for product collective.fingerpointing. Used profile: collective.fingerpointing:default 2018-09-14 11:45:30 INFO Products.GenericSetup.tool Importing profile profile-collective.fingerpointing:default with dependency strategy upgrade. 2018-09-14 11:45:30 INFO Products.GenericSetup.tool Applying main profile profile-collective.fingerpointing:default 2018-09-14 11:45:31 INFO GenericSetup.rolemap Role / permission map imported. 2018-09-14 11:45:40 INFO GenericSetup.actions Actions tool imported. 2018-09-14 11:45:40 INFO GenericSetup.controlpanel Control panel imported. 2018-09-14 11:45:40 INFO GenericSetup.archetypetool Archetype tool imported. 2018-09-14 11:45:40 INFO GenericSetup.browserlayer Browser layers imported 2018-09-14 11:45:40 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=profile imported id=collective.fingerpointing:default version=5 2018-09-14 11:47:03 ERROR Zope.SiteErrorLog 1536896823.840.972718025264 http://localhost:8080/Plone/@@fingerpointing-audit-log Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall Module ZPublisher.Publish, line 48, in call_object Module Products.Five.browser.metaconfigure, line 485, in call Module Products.Five.browser.pagetemplatefile, line 125, in call Module Products.Five.browser.pagetemplatefile, line 59, in call Module zope.pagetemplate.pagetemplate, line 132, in pt_render Module zope.pagetemplate.pagetemplate, line 240, in call Module zope.tal.talinterpreter, line 271, in call Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 888, in do_useMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 946, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 583, in do_setLocal_tal Module zope.tales.tales, line 696, in evaluate

hvelarde commented 6 years ago

seems log_info.logfile has an unexpected value of None:

https://github.com/collective/collective.fingerpointing/blob/1.7/src/collective/fingerpointing/utils.py

can you share zope-conf-additional on your buildout configuration?

laulaz commented 5 years ago

Indeed this error happens when zope-conf-additional configuration has not been done. A message should be displayed instead right ? or maybe disable the action ?