Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (14 sloc) 0.394 kb
#!/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 mbslave.search 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.