Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (14 sloc) 394 Bytes
#!/usr/bin/env python
import os
import itertools
from lxml import etree as ET
from lxml.builder import E
from mbslave import Config, connect_db
from import generate_triggers
cfg = Config(os.path.join(os.path.dirname(__file__), 'mbslave.conf'))
db = connect_db(cfg)
print '\set ON_ERROR_STOP 1'
print 'BEGIN;'
for code in generate_triggers():
print code
print 'COMMIT;'
Jump to Line
Something went wrong with that request. Please try again.