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

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

src/p/y/pyrone-1.1.2/pyrone/views/admin.py   pyrone(Download)
 
from pyrone.lib import helpers as h, httpcode
from pyrone.models import config, DBSession, Article, Comment, Tag, File, Config, User, Role, VerifiedEmail
from pyrone.models.file import get_storage_dirs, get_backups_dir, allowed_dltypes
from pyrone.lib.jsonhttpresponse import JSONResponse
    c = dict(errors=dict())
 
    c['file'] = File()
 
    # process file upload
    file = dbsession.query(File).filter(File.name==request.POST['filename']).first()
    if file is None:
        file = File()
    file.name = request.POST['filename']
    file.size = len(hfile.value)
    storage_dirs = get_storage_dirs()
    for node in nodes:
        file = File()
        src = node.get('src')
        # read "name", "dltype", "updated", "content_type"

src/p/y/pyrone-1.1.2/pyrone/views/blog.py   pyrone(Download)
from pyramid.renderers import render
 
from pyrone.models import DBSession, Article, Comment, Tag, File, VerifiedEmail
from pyrone.models.config import get as get_config
from pyrone.lib import helpers as h, markup, notifications

src/p/y/pyrone-1.1.2/pyrone/lib/helpers.py   pyrone(Download)
from pyrone.models.config import get as get_config
from pyrone.models.file import get_storage_dirs
from pyrone.models import DBSession, Article, Tag, Comment, File
from pyrone.lib import auth, lang
from pyrone.lib import cache