Did I find the right examples for you? yes no

All Samples(8)  |  Call(3)  |  Derive(1)  |  Import(4)

src/j/o/JoCommentAtom-0.1.3/jocommentatom/__init__.py   JoCommentAtom(Download)
from pyramid.configuration import Configurator
from pyramid.settings import asbool
from pyramid.exceptions import NotFound
 
from jocommentatom.models import initialize_db
    initialize_db(db_string, asbool(db_echo))
 
    config = Configurator(settings=settings)
 
    config.add_route('home', '/', view=atom_feed,

src/s/o/so-starving-HEAD/pyramid/run.py   so-starving(Download)
import urllib
import json as simplejson
 
from pyramid.configuration import Configurator
from paste.httpserver import serve
settings = {}
settings['mako.directories'] = './templates'
config = Configurator(settings=settings)
config.begin()
config.add_view(index, name='', renderer='index.mako')

src/e/v/everest-1.0b2dev/everest/configuration.py   everest(Download)
from everest.views.postcollection import PostCollectionView
from everest.views.putmember import PutMemberView
from pyramid.configuration import Configurator as PyramidConfigurator
from pyramid.interfaces import IApplicationCreated
from pyramid.interfaces import IRendererFactory
class Configurator(PyramidConfigurator):
    """
    Configurator for everest.
    """
 

src/j/o/JoCommentAtom-0.1.3/jocommentatom/tests.py   JoCommentAtom(Download)
import unittest
from pyramid.configuration import Configurator
from pyramid import testing
 
class TestNotFoundView(unittest.TestCase):
    def setUp(self):
        self.config = Configurator()