Ejemplo n.º 1
0
    def incoming(self, request):
        ProxyBase.incoming(self, request)

        try:
            func = getattr(request.request_handler, request.action)
        except AttributeError:
            print('Request called handler action that doesn\'t exist.')
            sys.exit()
        else:
            func()
            request.action_date = datetime.datetime.now()
Ejemplo n.º 2
0
 def __init__(self):
     ProxyBase.__init__(self)
     self.default_db = 'host'
Ejemplo n.º 3
0
 def outgoing(self, request):
     ProxyBase.outgoing(self, request)
     request.host_store.flush()
Ejemplo n.º 4
0
 def begin(self):
     print('Are you (d)ropping data off, or (c)ollecting it?')
     self.task = raw_input()
     ProxyBase.begin(self)