On Wed, Mar 18, 2009 at 11:46 PM, 一首诗 <newpt...@gmail.com> wrote:
> > Hi, > > I am trying to pass SqlAlchemy objects to client with XML RPC, but it > seems that that's not very easy. It depends on what you are trying to do, and what error messages you are getting, for anyone to help. I am using XML RPC with SQLAlchemy right now, and I am, in fact, passing objects in. I wrote a metaclass that calls back to XML RPC, and takes the ugly nested dictionary and returns back a nifty class pre-populated with attributes I need to fill out. When I set each attribute, it then populates __dict__. At that point, I simply pass that back to XML RPC. Works great. > > > The reason why I have to do this is that my client is written in > javascript and running on a web page. So it could not use anything > other than text based protocols, such as XML RPC, SOAP, or JSON. > > I tried pyamf, and it works pretty good with SA, but I can't use amf > with javascript. > > Is there any possible solutions with my problem? > > > -- Cheers, Noah --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---