Thanks a lot! That really helped me. There is a comet application called Orbited written for Django framework. Interested people might have a look at it here
http://www.orbited.org/ Thanks a lot Karen. I could have never found that out through normal google search. -Priyank On Jun 21, 9:13 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jun 21, 2008 at 9:13 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > > > Let me give more details.. > > > I am trying to write a web-based multi-protocol client. There is an > > opensource messenger Pidgin. Pidgin also comes with a dbus interface > > with which, you can talk to pidgin, and do all the stuff provided by > > pidin through scripts. Pidgin has signal handling system. For certain > > events, corresponding signals will be raised. Through dbus, I am > > registering a python function (message_received) as a callback > > function which listens to "message received" signal. This function > > will be called when ever a new message is received on Pidgin. Now I > > have to do **something** inside the message_received function which > > will render the the received message on my Template. > > > Is there an automatic way of updating my template from this view? > > > Right now, the way I am doing is, I am using Ajax.PeriodicalUpdater, > > and polling every second for new messages. This is very inefficient > > and I think this is not a scalable solution. With out continuous > > updating, if I can update the template from message_received callback > > function, only when message is received, that will be great. > > > Could someone throw some light in this? Even some hints will be > > great. > > Check out this thread: > > http://groups.google.com/group/django-users/browse_thread/thread/8e77... > > and the stuff it links to. Initial question was how Django supports the > kind of approach you are looking for (Comet) and the answer was Django > neither supports nor prevents you from doing it. I think there's mention of > a couple of different external projects that were looking to do something in > this area, but I have no need for this approach myself so have no idea > whether these projects have prospered or fallen by the wayside. > > Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---