« Return to Thread: n00b help

n00b help

by Jesse Warden-2 :: Rate this Message:

Reply to Author | View in Thread

Just trying to ensure I get it.  Python & Django n00b, ActionScript & Flex veteran.  I managed to get the HelloWorld working in another project & app.  AMF through Django with authentication.... not so much...

It seems if I follow the instructions here:

http://pyamf.org/wiki/DjangoHowto

I just need to have an "amfgateway.py" file in my app folder.  This is basically a FrontController, and from it, I can define functions that my Flex client can call.  Looking at the example on Joel's blog, however, has me confused.  So, bunch of questions:

----------------------------------

How do I wire up my Remoting tag?  Assuming I have this in my amfgateway.py services dict:

services = {
    'cloud.echo': echo
}

And my modified urls.py in the main project has this added:

(r'^gateway/', 'powerz.cloud.amfgateway.echoGateway'),

Then I'd have a RemoteObject tag in Flex like:

<mx:RemoteObject id="remoteObj" destination="powerz.cloud.amfgateway.echoGateway" endpoint="http://localhost:8000">

   <mx:method name="echo" result="onResult(event)" fault="onFault(event)"/>

</mx:RemoteObject>


Right?

----------------------------------

What is the difference between this:

http://pyamf.org/browser/pyamf/trunk/pyamf/remoting/gateway/django.py

And the client example here:

http://pyamf.org/browser/examples/trunk/helloworld/python/server.py

Are both just examples to use during development?  What do I actually have to deploy for production?  Are errors from authentication something I can recognize on the Flex client vs. a regular scripting error?

Thanks for your time.




_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

 « Return to Thread: n00b help