Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/k/n/kninfra-HEAD/kn/utils/daan/forum.py   kninfra(Download)
def forum_setpass(daan, user, password):
    creds = settings.FORUM_MYSQL_SECRET
    dc = MySQLdb.connect(creds[0], user=creds[1], passwd=creds[2], db=creds[3])
    c = dc.cursor()
    salt = pseudo_randstr()
def apply_forum_changes(daan, changes):
    creds = settings.FORUM_MYSQL_SECRET
    dc = MySQLdb.connect(creds[0], user=creds[1], passwd=creds[2],
                db=creds[3])
    c = dc.cursor()

src/k/n/kninfra-HEAD/kn/utils/giedo/forum.py   kninfra(Download)
def generate_forum_changes(self):
    users = dict()
    creds = settings.FORUM_MYSQL_SECRET
    dc = MySQLdb.connect(creds[0], user=creds[1],
            passwd=creds[2], db=creds[3])