Le 17 mars 2006, à 19:37, Joachim Schmitz a écrit :
I try to switch my product to use GenericSetup. I created the various
xml-files by making a snapshot. Ofcourse there errors/inconsistencies
so my profile import fails, and I get tracebacks like this:
Traceback (innermost last):
* Module ZPublisher.Publish, line 187, in publish_module_standard
* Module Products.GenericSetup.utils, line 744, in importObjects
__traceback_info__: workflows/waeup_workspace_wf
* Module Products.CPSWorkflow.exportimport, line 120, in
_importBody
* Module Products.CPSWorkflow.exportimport, line 322, in
parseWorkflowXML
* Module Products.CPSWorkflow.exportimport, line 541, in
_extractCPSTransitionNodes
* Module Products.DCWorkflow.exportimport, line 1176, in
_getNodeAttribute
ValueError: Invalid attribute: before_script (Also, the following
error occurred while attempting to render the standard error message,
please see the event log for full details: 'GlobalAdapterRegistry'
object has no attribute 'getAdapters')
which is more confusing then helpfull. Is there a way to get better
tracebacks, where I at least can see, where and what the error is.
You don't need a better traceback, If you keep in mind all the
available info:
1) Look at the event log (level debug, I think), you'll know which
workflow (or whatever) this is about
2) The traceback just says that the 'before_script' attribute is wrong*
on some transition tag (_extractCPSTransitionNodes)
3a) if the error isn't obvious, go to CPSDefault's profile and compare
with what you wrote.
3b) go to the code to see under what circumstances ValueError is raised.
PS: I did step 3b. I agree that the error could be more explicit.
PS2: You can also use the product mentionned earlier by Olivier which
launches pdb at the point where the error was raised. It's post-mortem,
so you can't step any further but you can introspect. 3b) boils down
more or less to the typing of 'l'
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel