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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

