[Zope] <dtml-tree> from multiple SQL tables

Will Stephenson lists at stevello.free-online.co.uk
Mon Nov 24 03:27:33 EST 2003


On Sunday 23 November 2003 19:24, Dieter Maurer wrote:
> Will Stephenson wrote at 2003-11-23 09:55 +0000:
>  > ...
>  > But when I try to expand
>  > these branches, I get a "Error Type: TypeError
>  > Error Value: object of type 'long int' is not callable" error.  I'm
>  > running in debug mode but there isn't a backtrace in the error page as
>  > rendered or its source.
>
> From Zope 2.6 on, tracebacks can be found via
>
>      <http://<yourZope>/error_log>

Thanks again for all the help, Dieter.

The traceback looks like this.  

<snip>
    * Module TreeDisplay.TreeTag, line 451, in tpRenderTABLE
      __traceback_info__: (['AAAAAAAAIi4=', [[1, []]]], 
{'childless_decoration': '', 'id': 'objectid', 'branches_expr': <method 
Eval.eval of Eval instance at 0x8e43e24>, 'url': 'tpURL'}, [['AAAAAAAAIi4=', 
[[1, []]]]], [['AAAAAAAAIi4=', [[1, []]]]])
    * Module TreeDisplay.TreeTag, line 442, in tpRenderTABLE
      __traceback_info__: ([1, []], {'childless_decoration': '', 'id': 
'objectid', 'branches_expr': <method Eval.eval of Eval instance at 
0x8e43e24>, 'url': 'tpURL'}, [['AAAAAAAAIi4=', [[1, []]]]], [[1, []]])

tpRenderTABLE calls itself recursively and then dies atTreeDisplay.TreeTag, 
line 442:

if not simple_type(type(id)): id=id()

reading up, __traceback_info__=sub, args, state, substate, so the value of id 
at this point is 'objectid' - which according to my queries is an int.  

Why does this simple_type(...) function return false?

I'm really grateful for any help.

Will
-- 
Will Stephenson



More information about the Zope mailing list