Hi folks,

Some here might be interested in the following, others - excuse this
annoyance :o)

A few folks (Nick Joyce and Thijs Triemstra mostly) are working on
PyAMF, an AMF encoder and decoder in Python. It may be considered pre-
alpha for the moment. It includes Remoting gateways for Twisted, WSGI
and now Django as well.

Exposing functions for AMF remoting is simple, define a gateway (a
dispatcher) like this:

# yourproject/yourapp/amfgateway.py

from pyamf import gateway

def echo(data):
    return data

echoGateway = gateway.BaseGateway({'echo': echo})  # could include
other functions as well


and add them to urlconf via a generic view:

# yourproject/urls.py

urlpatterns = patterns('',

    # AMF Remoting Gateway
    (r'^gateway/', 'pyamf.gateway.djangogateway.DjangoGateway',
                 {'gateway':
'yourproject.yourapp.amfgateway.echoGateway'}),

)


Hope you check it out and give us a hand with testing. The project
website is http://pyamf.org/

cheers,
Arnar

ps. we are aware of DjangoAMF, PyAMF is meant as a more generic AMF
implementation - not exclusive to Django.


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