Question


I'm interested in doing data-push from django to flex, can this be done using pyamf (tutorials or examples are highly appreciated)?
I would like to do it in such a way that when something is changed in the database, the client are notified of that change.

Was it helpful?

Solution

I haven't done it, and it looks difficult.

What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?

PyAMF gives you the tools to send and receive AMF messages in Python.

But Django isn't suited to push, as normally for push you'd use socket connections rather than HTTP.

Which probably means having a Twisted server as well. You could still use Django... you'd maybe have signals code in your models telling the Twisted server to send a message back to the Flex client.

You'd still have to write all the data-binding type code yourself on the Flex side, though PyAMF provide example client code to get you started.

Apparently the Java frameworks for Flex do code generation for both sides, making it all much easier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top