[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-03 Thread Gloria W
> Ah, I forgot the original context you were working in! > I did too :) I didn't communicate it clearly, I think. I was trying to accomplish too much too quickly. This is exactly what I hoped for, a solution that would not force me to disconnect and reconnect. Let me give this a go and get ba

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Matt Hammond
Ah, I forgot the original context you were working in! All the suggestions I've made previously could be considered as trying to this problem: that the ConsoleReader component not only reads user input, but also generates a prompt for it (which it directly writes to the console (standard ou

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
I got the carousel example working, but it sends/receives from/to the original console, not any new client which connects. I realized I can reuse the ConsoleEchoer, but somehow make it send a string to a client upon connect, and have the server process the string instead of echoing it to the se

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
This is really cool, and exactly what I need. I will get some time later to implement this and try it out, and I am sure I'll have more questions and comments. Thanks again for this. Gloria > On Mar 2, 8:36 pm, Gloria W wrote: > >> Matt, thanks for this response. It took me a while to get thr

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Matt
On Mar 2, 8:36 pm, Gloria W wrote: > Matt, thanks for this response. It took me a while to get through it and > make sure I understood each point. I appreciate it, comments are below. No problem. I've just realised another way to achieve the same effect that is probably simpler! There *is* a c

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Gloria W
Matt, thanks for this response. It took me a while to get through it and make sure I understood each point. I appreciate it, comments are below. >> This is true, thanks. Now let's say I wanted to write to the client's >> console before reading anything from their console. >> >> With no other chan

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-02 Thread Matt Hammond
> This is true, thanks. Now let's say I wanted to write to the client's > console before reading anything from their console. > > With no other changes, this Pipeline setting doesn't work: > Pipeline( > MyComponent(), > ConsoleReader(), > ).run() > > but I am expe

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-01 Thread Gloria W
> > Could you clarify which example you're looking at? The only one I can > see with those lines is the "MyComponent" example, in which case you > get the expected result. This is the code I'm running; > http://davbo.pastebin.com/m5ea9e662 > > You might just be getting confused with the boxes, you

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-01 Thread Gloria W
> > Like this? > http://pastebin.com/m70a968b7 > > ie (diff) : > http://pastebin.com/pastebin.php?diff=m70a968b7 > Yes, perfect, thank you. > >> and it does nothing. yielding it also does nothing. I should be able to >> write to the console without receiving data from it, I hope. What am I >

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-01 Thread Michael Sparks
On Sunday 01 March 2009 06:51:09 Gloria W wrote: > Hi all, > I am testing things, trying to get a small modification to this example > working correctly: http://www.kamaelia.org/Home By this, I'm assuming you mean this: http://pastebin.com/m529b7499 > I've simple added this line: > > self.s

[kamaelia-list] Re: Small mod to console example doesn't work?

2009-03-01 Thread Dave King
Hey Gloria, On 1 Mar, 06:51, Gloria W wrote: > Hi all, > I am testing things, trying to get a small modification to this example > working correctly:http://www.kamaelia.org/Home > I've simple added this line: > > self.send("Testing..1.2.3...",'outbox') > > between these two lines: > > *while* no