[Erp5-dev] problem with resource price

Łukasz Nowak lukasz.nowak at ventis.com.pl
Wed Jul 12 09:57:54 CEST 2006


Hello,

In r8409 I've got problem while accessing
Resource_viewDefaultSupplyLine:

2006-07-12T09:48:45 INFO(0) ERP5Form.get_value
( Resource_viewDefaultSupplyLine/my_supply_line_quantity_step_list
[default]), exception on tales_expr:
Traceback (most recent call last):
  File "/var/lib/zope/Products/ERP5Form/Form.py", line 94, in get_value
    value = tales_expr.__of__(self)(**kw)
  File "/usr/lib/zope/lib/python/Products/Formulator/TALESField.py",
line 44, in __call__
    return getEngine().getContext(kw).evaluate(expr)
  File "/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py", line
221, in evaluate
    return expression(self)
  File
"/usr/lib/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py", line
47, in __call__
    return eval(code, g, {})
  File "Python expression "[str(int(x)) for x in
here.default_supply_line.getQuantityStepList()]"", line 1, in
<expression>
AttributeError: default_supply_line
2006-07-12T09:48:45 INFO(0) ERP5Form.get_value
( Resource_viewDefaultSupplyLine/matrixbox [lines]), exception on
tales_expr:
Traceback (most recent call last):
  File "/var/lib/zope/Products/ERP5Form/Form.py", line 94, in get_value
    value = tales_expr.__of__(self)(**kw)
  File "/usr/lib/zope/lib/python/Products/Formulator/TALESField.py",
line 44, in __call__
    return getEngine().getContext(kw).evaluate(expr)
  File "/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py", line
221, in evaluate
    return expression(self)
  File
"/usr/lib/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py", line
47, in __call__
    return eval(code, g, {})
  File "Python expression
"here.default_supply_line.SupplyLine_asCellRange('path', matrixbox=1,
display_base_category=0)[0]"", line 1, in <expression>
AttributeError: default_supply_line
2006-07-12T09:48:45 INFO(0) ERP5Form.get_value
( Resource_viewDefaultSupplyLine/matrixbox [columns]), exception on
tales_expr:
Traceback (most recent call last):
  File "/var/lib/zope/Products/ERP5Form/Form.py", line 94, in get_value
    value = tales_expr.__of__(self)(**kw)
  File "/usr/lib/zope/lib/python/Products/Formulator/TALESField.py",
line 44, in __call__
    return getEngine().getContext(kw).evaluate(expr)
  File "/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py", line
221, in evaluate
    return expression(self)
  File
"/usr/lib/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py", line
47, in __call__
    return eval(code, g, {})
  File "Python expression
"here.default_supply_line.SupplyLine_asCellRange('path', matrixbox=1,
display_base_category=0)[1]"", line 1, in <expression>
AttributeError: default_supply_line
2006-07-12T09:48:45 INFO(0) ERP5Form.get_value
( Resource_viewDefaultSupplyLine/matrixbox [tabs]), exception on
tales_expr:
Traceback (most recent call last):
  File "/var/lib/zope/Products/ERP5Form/Form.py", line 94, in get_value
    value = tales_expr.__of__(self)(**kw)
  File "/usr/lib/zope/lib/python/Products/Formulator/TALESField.py",
line 44, in __call__
    return getEngine().getContext(kw).evaluate(expr)
  File "/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py", line
221, in evaluate
    return expression(self)
  File
"/usr/lib/zope/lib/python/Products/PageTemplates/ZRPythonExpr.py", line
47, in __call__
    return eval(code, g, {})
  File "Python expression
"here.default_supply_line.SupplyLine_asCellRange('path', matrixbox=1,
display_base_category=0)[2]"", line 1, in <expression>
AttributeError: default_supply_line

I've used older Resource_viewDefaultSupplyLine (r7500) but problem
persist. I cannot find any reference to default_supply_line changed
since in SVN report. What could be the problem? With TALES or
incosistency in objects?

Bye,
Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc




More information about the Erp5-dev mailing list