Exemplo n.º 1
0
def run(d):
    from mint import mint

    filters = []
    for key, value in d.items():
        if key.startswith("mint_") and callable(value):
            filters.append(value)
    logger.debug("Got %d filters" % len(filters))
    mint.login(d["username"], d["password"])
    for f in filters:
        f(mint)
    Transaction.commit_dirty()
    mint.logout()
Exemplo n.º 2
0
def setup():
    mint.login(settings.username, settings.password)