示例#1
0
def createPublicSubscribed(email):
    uemails = db.GqlQuery("SELECT * " "FROM User " "WHERE ANCESTOR IS :1 AND email = :2", db_key(), email)
    pemails = findPublicEmail(email)
    if uemails.count() != 0 | pemails.count():
        return
    sub = publicSubscribed(parent=users.db_key())
    sub.email = email
    sub.put()
示例#2
0
def createPublicSubscribed(email):
    uemails = db.GqlQuery(
        'SELECT * '
        'FROM User '
        'WHERE ANCESTOR IS :1 AND email = :2', db_key(), email)
    pemails = findPublicEmail(email)
    if uemails.count() != 0 | pemails.count():
        return
    sub = publicSubscribed(parent=users.db_key())
    sub.email = email
    sub.put()
示例#3
0
def findPublicEmail(email):
    return db.GqlQuery(
        "SELECT * " "FROM publicSubscribed " "WHERE ANCESTOR IS :1 AND email = :2", users.db_key(), email
    )
示例#4
0
def findPublicEmail(email):
    return db.GqlQuery(
        'SELECT * '
        'FROM publicSubscribed '
        'WHERE ANCESTOR IS :1 AND email = :2', users.db_key(), email)