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

All Samples(5)  |  Call(2)  |  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
        subnodes = node.xpath('./b:comments/b:comment', namespaces=namespaces)
        for sn in subnodes:
            comment = Comment()
            comment.article_id = article.id
            comment.id = int(sn.get('id'))

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
        return dict(error=_('Empty comment body is not allowed.'))
 
    comment = Comment()
    comment.set_body(body)
 

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