Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] need some help

Hi,

I would like to see if it is possible to implement a basic agent in python. I’ve been looking at the python code, which implements a client, and it looks like most of the pieces are there other than the services themselves. I’m guessing that to implement a FileSystemService (for example), I would need to subclass filesystem.FileSystemServce and provide implementations for the abstract methods. My server registers a FileSystemServiceProvider(services.ServiceProcider) class using protocol.addServiceProvider, and when I invoke a method such as ‘roots’, my CommandServer.command method is being called.

What I’m not sure about is how to implement the abstract methods. e.g. what should the methods return? It looks like the proxy methods return a FileSystemCommand, but I’m not sure what my local methods should be returning.

If anyone can provide some assistance on how to do this, it would be appreciated.

Greg

Back to the top