percious  committed e752b01
  • Participants
  • Parent commits f543c99

Comments (0)

Files changed (1)

File docs/main/TGandPyAMF.rst

 Then you can import your GatewayController into
-    from tg import use_wsgi_app 
+    from tg.controllers import WSGIAppController
     from mygateway import GatewayController
 Now all you have to do is add a method that delegates to the wsgi
-  @expose()
-  def gateway(self, *args, **kwargs):
-      return use_wsgi_app(GatewayController)
+  amf = WSGIAppController(GatewayController)
 Of course, you'll need to import use_wsgi_app from tg, and your
 GatewayController from wherever you put it. But once you've done those
     <?xml version="1.0" encoding="utf-8"?>
     <mx:Application xmlns:mx="" horizontalAlign="left">
-    <mx:RemoteObject id="remoteObj" endpoint="" destination="Services"
+    <mx:RemoteObject id="remoteObj" endpoint="" destination="Services"
         result="displayResult(event)" fault="remoteFault(event)">
         <mx:method name="scramble" result="scrambleResult(event)"/>