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

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

src/m/e/mediagoblin-0.6.1/mediagoblin/tools/response.py   mediagoblin(Download)
def render_user_banned(request):
    """Renders the page which tells a user they have been banned, for how long
    and the reason why they have been banned"
    """
    user_ban = UserBan.query.get(request.user.id)

src/m/e/mediagoblin-0.6.1/mediagoblin/moderation/views.py   mediagoblin(Download)
        ReportBase.resolved!=None).all()
    privileges = Privilege.query
    user_banned = UserBan.query.get(user.id)
    ban_form = moderation_forms.BanForm()
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tools/response.py   JoshuaGoblin(Download)
def render_user_banned(request):
    """Renders the page which tells a user they have been banned, for how long
    and the reason why they have been banned"
    """
    user_ban = UserBan.query.get(request.user.id)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/moderation/views.py   JoshuaGoblin(Download)
        ReportBase.resolved!=None).all()
    privileges = Privilege.query
    user_banned = UserBan.query.get(user.id)
    ban_form = moderation_forms.BanForm()
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_privileges.py   JoshuaGoblin(Download)
        # hasn't happened yet
        #----------------------------------------------------------------------
        user_ban = UserBan.query.get(uid)
        user_ban.delete()
        user_ban = UserBan(user_id=uid,
        # has already happened
        #----------------------------------------------------------------------
        user_ban = UserBan.query.get(uid)
        user_ban.delete()
        exp_date = date.today() - timedelta(days=20)

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_privileges.py   mediagoblin(Download)
        # hasn't happened yet
        #----------------------------------------------------------------------
        user_ban = UserBan.query.get(uid)
        user_ban.delete()
        user_ban = UserBan(user_id=uid,
        # has already happened
        #----------------------------------------------------------------------
        user_ban = UserBan.query.get(uid)
        user_ban.delete()
        exp_date = date.today() - timedelta(days=20)