To quickly get it working with ETP this is what I did. There's probably a more elegant way to do it:
https://openacs.org/forums/message-view?message_id=115599