Esempio n. 1
0
def main():
    environment.fakeApp(texts.appNameHoudini)
    log.info('Launching {0} server ...', connectortools.getCurrentApp())
    server = ApplicationServer()
    #log.debug('Session link : {0}', server.probeSession())
    #server.probeAsync()

    '''    
    server.handle(TEST_EVENTS.SOME_EVENT, server.do_some_event)
    server.client.watch(server.card(), TEST_EVENTS.SOME_EVENT)
    
    server.client.hello()
    server.client.hi('detached call')
    server.client.hey(server.card(server.hey_done), 'async call')
    '''
    
    try:
        while True:
            #log.debug('... out loop')
            time.sleep(1)
    except KeyboardInterrupt:
        print '... keyboard interrupt !'
        server.stopWatchDog()
        raise
Esempio n. 2
0
import scramble

from cgev.common import environment

environment.fakeApp('sbra')

import cgev.pipeline.process.start