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

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/b/r/BridgePython-0.2.2/BridgePython/bridge.py   BridgePython(Download)
        @return: An opaque reference to a service.
        '''
        return reference.Reference(self, ['named', name, name])
 
    def get_channel(self, name):
        # Send GETCHANNEL command in order to establih link for channel if client is not member
        self._connection.send_command('GETCHANNEL', {'name': name})
        return reference.Reference(self, ['channel', name, 'channel:' + name])
 
    def join_channel(self, name, handler, writeable=True, callback=None):
        self._store[name] = handler
        # Return reference to stored callback
        return reference.Reference(self, ['client', self._connection.client_id, name], ops)
 
    def _send(self, args, destination):
        if func:
            # Send callback with reference to channel and handler operations
            func(reference.Reference(self._bridge, ['channel', name, 'channel:' + name], util.find_ops(handler)), name)
 
    def getService(self, name, func):

src/b/r/bridge-python-HEAD/BridgePython/bridge.py   bridge-python(Download)
        @return: An opaque reference to a service.
        '''
        return reference.Reference(self, ['named', name, name])
 
    def get_channel(self, name):
        # Send GETCHANNEL command in order to establih link for channel if client is not member
        self._connection.send_command('GETCHANNEL', {'name': name})
        return reference.Reference(self, ['channel', name, 'channel:' + name])
 
    def join_channel(self, name, handler, writeable=True, callback=None):
        self._store[name] = handler
        # Return reference to stored callback
        return reference.Reference(self, ['client', self._connection.client_id, name], ops)
 
    def _send(self, args, destination):
        if func:
            # Send callback with reference to channel and handler operations
            func(reference.Reference(self._bridge, ['channel', name, 'channel:' + name], util.find_ops(handler)), name)
 
    def getService(self, name, func):

src/b/r/BridgePython-0.2.2/BridgePython/serializer.py   BridgePython(Download)
        else:           
            # Create reference
            ref = reference.Reference(bridge, address, ops)
            if ref._operations == ['callback']:
                obj = ref.callback

src/b/r/bridge-python-HEAD/BridgePython/serializer.py   bridge-python(Download)
        else:           
            # Create reference
            ref = reference.Reference(bridge, address, ops)
            if ref._operations == ['callback']:
                obj = ref.callback

src/b/r/BridgePython-0.2.2/BridgePython/client.py   BridgePython(Download)
    def get_service(self, svc):
        return reference.Reference(self.bridge, ['client', self.clientId, svc])
 

src/b/r/bridge-python-HEAD/BridgePython/client.py   bridge-python(Download)
    def get_service(self, svc):
        return reference.Reference(self.bridge, ['client', self.clientId, svc])
 

src/b/r/bridge-python-HEAD/test/unit/test_reference.py   bridge-python(Download)
  def test_reference(self):
      dummy = BridgeDummy()
      ref = reference.Reference(dummy, ['x', 'y', 'z'], ['a', 'b', 'c'])
      self.assertEqual(['a', 'b', 'c'], ref._operations)
      self.assertEqual({'ref': ['x', 'y', 'z'], 'operations': ['a', 'b', 'c']}, ref._to_dict())