Using PyAMF in other frameworks

View: New views
2 Messages — Rating Filter:   Alert me  

Using PyAMF in other frameworks

by rpb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys!

I would like to use PyAMF in the Gloun web framework context (
http://mdp.cti.depaul.edu/). How can I go about this? Can just import
PyAMF? and create a gateway as in the Pylons example?

Thanks

 


Re: Using PyAMF in other frameworks

by Arnar Birgisson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Dec 22, 2007 8:02 AM, akira <nhytro-python@...> wrote:
> I would like to use PyAMF in the Gloun web framework context (
> http://mdp.cti.depaul.edu/). How can I go about this? Can just import
> PyAMF? and create a gateway as in the Pylons example?

If Gloun can embed WSGI apps, then you can use the WSGIGateway as in
the Pylons and CherryPy examples. Of course, how you hook it in is
Gloun specific.

If not, you'll have to derive from BaseGateway and provide the
interface Gloun expects of its controllers. See the DjangoGateway for
an example of this.

Arnar