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

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

src/c/h/chieftain-HEAD/api1/views.py   chieftain(Download)
from board import models
from board.shortcuts import add_sidebar
from board.tools import (
    make_tripcode, parse_user_agent,
    get_key, handle_uploaded_file
def finish_post(post, user, thread, files, section, ip, useragent, feed=None):
    # Set some common attributes.
    post.ip = ip
    post.date = datetime.now()
    post.password = get_key(post.password)
        except self.model.DoesNotExist:
            raise ErrorResponse(status.NOT_FOUND)
        key = get_key(request.GET["password"])
        if post.password == key:
            post.remove()
            raise ErrorResponse(status.NOT_FOUND)
 
        key = get_key(request.GET["password"])
        if file.post.password == key:
            file.remove()

src/c/h/chieftain-HEAD/converter/models.py   chieftain(Download)
from django.utils.html import strip_tags as strip_html_tags
from board.models import Thread, Post, File, FileType, Section, DeniedIP
from board.tools import get_key, print_flush