[Zope-CMF] Debugging TAL?
J C Lawrence
claw@kanga.nu
Sat, 12 Apr 2003 11:42:35 -0700
On Sat, 12 Apr 2003 20:20:02 +0200
Dieter Maurer <dieter@handshake.de> wrote:
> J C Lawrence wrote at 2003-4-11 12:04 -0700:
>> How do you debug TAL errors?
>> I can't tell where it is coming from -- the error page doesn't have a
>> tracedump, and the number of references to "tabindex" in the TAL code
>> is __large__.
> Are you using Zope 2.6.x?
Yup.
> Then your traceback is in the "error_log" object, you will find in
> Zope'r Root Folder.
Thanks. Its a surprisingly non-useful file for TAl errors which occur
in macros which are defined in files way way way under main_template.
It turned out that a bunch of TAL variables had been added to
main_template (like tabindex) which I hadn't migrated to my customised
main_template.
FeatureWish:
It would be very useful if an object clones to portal_skins/custom
"remembered" where it came from, and thus allowed easy diffing of
itself against its original (or the original as it is now under the
FSDV).
--
J C Lawrence
---------(*) Satan, oscillate my metallic sonatas.
claw@kanga.nu He lived as a devil, eh?
http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.