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/b/a/babble.server-1.1/babble/server/browser/service.py   babble.server(Download)
from Acquisition import aq_base
from Products.BTreeFolder2.BTreeFolder2 import manage_addBTreeFolder
from babble.server.service import ChatService
from babble.server import UseChatService
 
    def __call__(self, add_input_name='chatservice', title='Chat Service', submit_add=''):
        if submit_add:
            self.request.set('add_input_name', add_input_name)
            obj = ChatService(add_input_name)
            obj.title = title

src/b/a/babble.server-1.1/babble/server/tests/stress_test.py   babble.server(Download)
from OFS.Application import Application
 
from babble.server.service import ChatService
from babble.server import config
 
def _populate(app):
    try: app._delObject('chatservice')
    except AttributeError: pass
 
    app._setObject('chatservice', ChatService('chatservice'))

src/b/a/babble.server-1.1/babble/server/stresstests/stresstestMultiThread.py   babble.server(Download)
from zLOG.EventLogger import log_time
 
from babble.server.service import ChatService
 
sys.setcheckinterval(200)
def _populate(app):
    chatservice = ChatService('chatservice')
 
    try: app._delObject('chatservice')
    except AttributeError: pass