Re: [Twisted-Python] help using deferred

2009-05-18 Thread Jean-Paul Calderone
On Fri, 15 May 2009 16:58:11 +0200, Luigi Conte wrote: > [snip] > >I looked at the documentation and I understood something about defferd and >callbacks. I edited my code but it does nothing... >I'm going to explain the scenario and what I want to do: >- there is an api that provides some methods

Re: [Twisted-Python] help using deferred

2009-05-15 Thread Luigi Conte
2009/5/11 Jean-Paul Calderone > On Mon, 11 May 2009 19:49:19 +0200, Luigi Conte < > luigiandcosoluti...@gmail.com> wrote: > > > > [snip] > >in my script I have to use connect method and then I have to do some > >operations first of calling the start method > >1) start connection > > > >def st

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Jean-Paul Calderone
On Mon, 11 May 2009 19:49:19 +0200, Luigi Conte wrote: > > [snip] >in my script I have to use connect method and then I have to do some >operations first of calling the start method >1) start connection > >def startConnection(self): >d = my_api.connect(self.ctrl_ip, self.ctrl_port, se

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Luigi Conte
2009/5/11 Jean-Paul Calderone > On Mon, 11 May 2009 16:55:40 +0200, Luigi Conte < > luigiandcosoluti...@gmail.com> wrote: > >I'm sure you're saying only good things but I'm so inexpert in twisted > that > >I can't understand very well what to do. > >I'll try to explain all that I want to do and h

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Jean-Paul Calderone
On Mon, 11 May 2009 16:55:40 +0200, Luigi Conte wrote: >I'm sure you're saying only good things but I'm so inexpert in twisted that >I can't understand very well what to do. >I'll try to explain all that I want to do and how I did it wrongly: >first I have to call the connect method from the api

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Luigi Conte
I'm sure you're saying only good things but I'm so inexpert in twisted that I can't understand very well what to do. I'll try to explain all that I want to do and how I did it wrongly: first I have to call the connect method from the api and it returns a deferred so I do: in conn_to_ctrl i have: d

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Jean-Paul Calderone
On Mon, 11 May 2009 12:24:54 +0200, Luigi Conte wrote: >Hi people, >I'm luigi and I'm a student at Politecnico di Milano, Italy. I'm working for >a graduate thesis on a framework called usher. It provides an API to do >connect e command operations. It manages all those calls with a defferred >obj