[Twisted-Python] How to use time-base event in reactor?
I am developing a online RTS game server, some event a base by time, example: a buff grant Max HP for 30 seconds, spawn army ever 30 seconds... I plan to use a timer to manage it, but Twisted are event-driven, how to put this timer in reactor's loop?
On Sun, Mar 7, 2010 at 11:36 PM, sleepd
I am developing a online RTS game server, some event a base by time, example: a buff grant Max HP for 30 seconds, spawn army ever 30 seconds... I plan to use a timer to manage it, but Twisted are event-driven, how to put this timer in reactor's loop?
See: reactor.callLater twisted.internet.task.LoopingCall -- Christopher Armstrong http://radix.twistedmatrix.com/ http://planet-if.com/
Hi Setting up ejabberd server and python.twisted clients for interactive3D. In for example the lib...twisted.words.protocols.jabber\component.py there are a call to zope.interface. Doesnt seems to be a call to the zope db-server that powers Plone servers, is that correct? PS. having plone/zope servers running at the same server that can be running xmpp___.py clients. BG Sven-Erik Tiberg Lulea Univ of technology / Sweden
On Mon, 2010-03-08 at 12:55 +0100, Sven-Erik Tiberg wrote:
Hi
Setting up ejabberd server and python.twisted clients for interactive3D. In for example the lib...twisted.words.protocols.jabber\component.py there are a call to zope.interface.
Doesnt seems to be a call to the zope db-server that powers Plone servers, is that correct? PS. having plone/zope servers running at the same server that can be running xmpp___.py clients.
zope.interface is a very small library; the fact it has "zope" in the name doesn't mean it uses the full capabilities of a Zope server. You are correct, it does not use the Zope database. You can download it separately here: http://pypi.python.org/pypi/zope.interface#download
Thanks Only to clearify: Has zope.interface any depedencies/connection with the Zope web application server primarily written in the Python programming language ( http://www.zope.org/WhatIsZope ). Note: zope "web application server" uses ZODB ( http://docs.zope.org/zodb/ ) as data base. And plone (http://plone.org ) a CMS system are based on zope. More notes on http://wbsp.arb.ltu.se/3DNetwork/ BG Sven-Erik Tiberg -----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Itamar Turner-Trauring Sent: den 8 mars 2010 13:47 To: Twisted general discussion Subject: Re: [Twisted-Python] zope.interface? On Mon, 2010-03-08 at 12:55 +0100, Sven-Erik Tiberg wrote:
Hi
Setting up ejabberd server and python.twisted clients for interactive3D. In for example the lib...twisted.words.protocols.jabber\component.py there are a call to zope.interface.
Doesnt seems to be a call to the zope db-server that powers Plone servers, is that correct? PS. having plone/zope servers running at the same server that can be running xmpp___.py clients.
zope.interface is a very small library; the fact it has "zope" in the name doesn't mean it uses the full capabilities of a Zope server. You are correct, it does not use the Zope database. You can download it separately here: http://pypi.python.org/pypi/zope.interface#download _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Mon, 2010-03-08 at 15:36 +0100, Sven-Erik Tiberg wrote:
Thanks
Only to clearify: Has zope.interface any depedencies/connection with the Zope web application server primarily written in the Python programming language ( http://www.zope.org/WhatIsZope ).
Note: zope "web application server" uses ZODB ( http://docs.zope.org/zodb/ ) as data base. And plone (http://plone.org ) a CMS system are based on zope.
They are connected, yes. zope.interface is maintained by Zope people, but it's only a small subset of their code: 1. Twisted depends on zope.interface 2. Zope depends on zope.interface But 3. Twisted does *not* depend on Zope, ZODB, Plone, etc.. You can pretend it's just called "interface" if that helps :)
It's even more "challanging" ZOPE vers. uses a modified zope.interface lib. Not a great idea to run both plone and python.twisted... On the same windows mashine, thoung it could eb a challange but better save time to the main project goal. BG Sven-Erik -----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Itamar Turner-Trauring Sent: den 8 mars 2010 15:48 To: Twisted general discussion Subject: Re: [Twisted-Python] zope.interface? On Mon, 2010-03-08 at 15:36 +0100, Sven-Erik Tiberg wrote:
Thanks
Only to clearify: Has zope.interface any depedencies/connection with the Zope web application server primarily written in the Python programming language ( http://www.zope.org/WhatIsZope ).
Note: zope "web application server" uses ZODB ( http://docs.zope.org/zodb/ ) as data base. And plone (http://plone.org ) a CMS system are based on zope.
They are connected, yes. zope.interface is maintained by Zope people, but it's only a small subset of their code: 1. Twisted depends on zope.interface 2. Zope depends on zope.interface But 3. Twisted does *not* depend on Zope, ZODB, Plone, etc.. You can pretend it's just called "interface" if that helps :) _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (4)
-
Christopher Armstrong
-
Itamar Turner-Trauring
-
sleepd
-
Sven-Erik Tiberg