Discussion:
[Erp5-dev] can not view accounting transactions
Bartek Gorny
2006-01-09 16:57:58 UTC
Permalink
LiveCD, everything just checked out from CVS, new ERP5Site - when I
try to view an accounting transaction, I get:


Site Error

An error was encountered while publishing this resource.

KeyError
Sorry, a site error occurred.

Traceback (innermost last):

* Module ZPublisher.Publish, line 175, in publish_module_standard
* Module Products.Localizer, line 58, in new_publish
* Module ZPublisher.Publish, line 132, in publish
* Module Zope.App.startup, line 204, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Products.CMFCore.PortalContent, line 125, in view
* Module Products.CMFCore.PortalContent, line 116, in __call__
* Module Products.ERP5Form.Form, line 341, in __call__
* Module Products.ERP5Form.Form, line 357, in __call__
* Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<ZopePageTemplate at /erp5trzy/form_view used for
/erp5trzy/SaleInvoiceTransaction_viewAccounting>
* Module TAL.TALInterpreter, line 190, in __call__
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 671, in do_useMacro
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 671, in do_useMacro
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 464, in do_setGlobal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: /erp5trzy/global_definition
Line 72, Column 4
Expression: <PythonExpr here.portal_actions.listFilteredActionsFor(here)>
Names:

{'container': <Folder at /erp5trzy/accounting_module>,
'context': <Invoice at /erp5trzy/accounting_module/1>,
'default': <Products.PageTemplates.TALES.Default instance at 0x40c72eec>,
'form': <ERP5Form at /erp5trzy/SaleInvoiceTransaction_viewAccounting
used for /erp5trzy/accounting_module/1>,
'here': <Invoice at /erp5trzy/accounting_module/1>,
'loop': <SafeMapping instance at 4ff02790>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x40c7eeac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 4ff02790>,
'request': <HTTPRequest,
URL=http://localhost/erp5trzy/accounting_module/1/view>,
'root': <Application instance at 53a2e2f0>,
'template': <ERP5Form at
/erp5trzy/SaleInvoiceTransaction_viewAccounting used for
/erp5trzy/accounting_module/1>}

* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: here.portal_actions.listFilteredActionsFor(here)
* Module Python expression
"here.portal_actions.listFilteredActionsFor(here)", line 1, in
<expression>
* Module Products.CMFCore.ActionsTool, line 184, in listFilteredActionsFor
* Module Products.CMFCore.ActionsTool, line 253, in _listActions
* Module Products.CMFCore.ActionInformation, line 90, in testCondition
* Module Products.CMFCore.Expression, line 44, in __call__
* Module Products.PageTemplates.Expressions, line 172, in __call__
* Module Products.PageTemplates.Expressions, line 167, in _eval
* Module Products.PageTemplates.Expressions, line 66, in render
* Module Products.PageTemplates.ZRPythonExpr, line 65, in call_with_ns

KeyError: 'here' (Also, an error occurred while attempting to render
the standard error message.)

Troubleshooting Suggestions

* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to error log.

If the error persists please contact the site maintainer. Thank you
for your patience.
Jérôme Perrin
2006-01-10 10:07:55 UTC
Permalink
Post by Bartek Gorny
LiveCD, everything just checked out from CVS, new ERP5Site - when I
KeyError
Sorry, a site error occurred.
* Module Python expression
"here.portal_actions.listFilteredActionsFor(here)", line 1, in
<expression>
* Module Products.CMFCore.ActionsTool, line 184, in
listFilteredActionsFor * Module Products.CMFCore.ActionsTool, line 253, in
_listActions * Module Products.CMFCore.ActionInformation, line 90, in
testCondition
* Module Products.CMFCore.Expression, line 44, in __call__
* Module Products.PageTemplates.Expressions, line 172, in __call__
* Module Products.PageTemplates.Expressions, line 167, in _eval
* Module Products.PageTemplates.Expressions, line 66, in render
* Module Products.PageTemplates.ZRPythonExpr, line 65, in call_with_ns
KeyError: 'here' (Also, an error occurred while attempting to render
the standard error message.)
Hello,

On the Sale Invoice Transaction portal type, we define a condition with a path
TALES :

object/AccountingTransaction_isSourceCurrencyConvertible

and this bug happens :
http://www.zope.org/Collectors/CMF/171
( which has been fixed :
http://svn.zope.org/trunk/CMFCore/Expression.py?rev=36509&r1=36457&r2=36509 )

I'm replacing the condition with python: TALES that are not affected by this
problem, like this one :

python:object.AccountingTransaction_isSourceCurrencyConvertible()

Thanks for pointing this out
--
J?rome
Bartłomiej Górny
2006-01-10 11:54:53 UTC
Permalink
Ok - thanks a lot.
Post by Jérôme Perrin
Post by Bartek Gorny
LiveCD, everything just checked out from CVS, new ERP5Site - when I
KeyError
Sorry, a site error occurred.
* Module Python expression
"here.portal_actions.listFilteredActionsFor(here)", line 1, in
<expression>
* Module Products.CMFCore.ActionsTool, line 184, in
listFilteredActionsFor * Module Products.CMFCore.ActionsTool, line 253, in
_listActions * Module Products.CMFCore.ActionInformation, line 90, in
testCondition
* Module Products.CMFCore.Expression, line 44, in __call__
* Module Products.PageTemplates.Expressions, line 172, in __call__
* Module Products.PageTemplates.Expressions, line 167, in _eval
* Module Products.PageTemplates.Expressions, line 66, in render
* Module Products.PageTemplates.ZRPythonExpr, line 65, in call_with_ns
KeyError: 'here' (Also, an error occurred while attempting to render
the standard error message.)
Hello,
On the Sale Invoice Transaction portal type, we define a condition with a path
object/AccountingTransaction_isSourceCurrencyConvertible
w
http://www.zope.org/Collectors/CMF/171
http://svn.zosddpe.org/trunk/CMFCore/Expression.py?rev=36509&r1=36457&r2=36509 )
I'm replacing the condition with python: TALES that are not affected by this
python:object.AccountingTransaction_isSourceCurrencyConvertible()
Thanks for pointing this out
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
Loading...