If you are using PostgreSQL you can use this technique
http://www.divillo.com
-------- Original Message --------
Subject: Re: [Twisted-Python] Twisted and db table changes
From: Mark Visser <markv(a)lumierevfx.com>
Date: Tue, September 29, 2009 12:04 pm
To: Twisted general discussion <twisted-python(a)twistedmatrix.com>
gary clark wrote:
> Hello,
>
> I have a server that needs to track changes on a table database.
>
> When a table changes it needs the server accesses the table and send data out.
>
> Not sure what the best approach to do this in twisted. Do I create a thread in twisted and monitor for any changes in a table or can I create
> a callback method to be triggered when a change occurs to table.
>
Check out twisted.internet.task.LoopingCall. It will run a callback
periodically, during which you can poll for changes.
--
Mark Visser, Software Director
Lumière VFX
Email: markv(a)lumierevfx.com
Phone: +1-514-316-1080 x3030
_______________________________________________
Twisted-Python mailing list
Twisted-Python(a)twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python