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

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

src/d/p/dpxdt-HEAD/dpxdt/server/auth.py   dpxdt(Download)
        if not anonymous_superuser:
            anonymous_superuser = models.User(
                id=fake_id,
                email_address='superuser@example.com',
                superuser=1)
    user = models.User.query.get(user_id)
    if not user:
        user = models.User(id=user_id)
 
    # Email address on the account may change, user ID will stay the same.
        if not invitation_user:
            invitation_user = models.User(
                id=invitation_user_id,
                email_address=add_form.email_address.data)
            db.session.add(invitation_user)