Hi,
Trigger and Rules nodes have functions which are also used by view node.View node use them while generating reverse engineering SQL for respectivenodes.so they are moved into schema/utils.py
Please review the patch.
Thanks,Surinder Kumar