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

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

src/s/u/superdesk-security-1.0/superdesk/security/impl/authentication.py   superdesk-security(Download)
from datetime import timedelta
from os import urandom
from sql_alchemy.support.session import commitNow
from sql_alchemy.support.util_service import SessionSupport
from sqlalchemy.orm.exc import NoResultFound
        sql = sql.filter(TokenMapped.requestedOn > olderThan)
        if sql.delete() > 0:
            commitNow()  # We make sure that the delete has been performed
 
            sql = self.session().query(UserMapped)