If you have a situation where a TAL expression doesn't work (example below):
context.restrictedTraverse('@@contenthistory').fullHistory()[0]['comments']
What options there exist to debug this situation. Namely, can one put breakpoints to
TAL templates
TAL expression
Any expressions (e.g. portal_actions)
If you are using Chameleon (you should!) you can use this:
<?python import pdb; pdb.set_trace() ?>
The stuff you normally look for is accessible in 'econtext':
econtext['context']
econtext['request']
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With