Thank you all, I will try a daemon :)

On Oct 11, 3:34 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> This is the simplest (and for me - obvious) way of doing such things.
> I see 2 possiblities: either write it as a "long-running", traditional
> daemon (if you do not have your own XMPP server) or as Jabber/XMPP
> server component. The former is simpler, the later gives you more
> flexibility and seems more stable (only one point of failure).
> You can always ask assistance on PyXMPP mailing list if you have any
> questions, I am sure Jacek Konieczny will help you with Jabber/XMPP
> issues.
>
> On 10 Paź, 11:56, est <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thank you Christoph.
>
> > Yes I have tried a independent daemon, but that's a bit complicated
> > for a small site. Is there a simipler way?
>
> > Simple is better.
>
> > On Oct 10, 5:23 pm, Christoph Rauch <[EMAIL PROTECTED]> wrote:
>
> > > est schrieb:> I am writing a GoogleTalk bot for my django site, but I 
> > > don't know
> > > > were to initiate a xmpppy Client object in Django. Should I put it in
> > > > my project's __init__.py ? I need the bot to be always online so where
> > > > can I write a GLOBAL, long survival object in Django? How can I make
>
> > > I wouldn't put it into __init__.py
>
> > > Not knowing xmpppy, this may or may not be simple:
>
> > > I would build a seperate daemon and send commands to it from inside
> > > your Django project. If you need the other way round, just import the
> > > required models in your xmpp client and put some logic there.
>
> > > That way you can just fire off commands to the daemon without having
> > > to worry about your connection. It's up to the daemon then.
>
> > > You can start the daemon completely separate of your webserver/Django
> > > project. Just make sure that Django can connect to the daemon, e.g.
> > > via unix domain sockets. Domain sockets are great, because you can
> > > restrict access to it with basic filesystem rights.
>
> > > Christoph- Hide quoted text -
>
> - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to