|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
VO's?I saw Joel was apparently sending ActionScript ValueObjects to PyAMF and they were getting mapped to a Python equivalent on the server-side. This made synching with models really elegant looking. I'm not finding docs at pyamf.org specifically on sending custom VO's back and forth, any pointers on how to do this?
Right now, I'm just sending a vanilla Object that has been validated on the client before sending to ensure it has blank values to avoid Django getting mad the Model doesn't have null values. I'm sure there is a better way...
_______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: VO's?you need to register the classes on the server with pyamf and also use the RemoteClass meta with the module/class path of the model in actionscript.
this is an (extremely old) snapshot of my VE:Session project. It is making use of this, but I notice I'm not using the try/except that I use in the authentication example: http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/ This is necessary when you want to maintain a browser session, which I wasn't doing at the time. If you'd like to peep my production code, I wouldn't mind giving you access. It is an extensive PureMVC project using pyamf/django with a shared core and air/flex clients. On Jul 14, 2009, at 1:00 PM, Jesse Warden wrote: I saw Joel was apparently sending ActionScript ValueObjects to PyAMF and they were getting mapped to a Python equivalent on the server-side. This made synching with models really elegant looking. I'm not finding docs at pyamf.org specifically on sending custom VO's back and forth, any pointers on how to do this? _______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: VO's?Got it, makes total sense, thank you!
On Tue, Jul 14, 2009 at 2:25 PM, Joel Hooks <joelhooks@...> wrote:
_______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: VO's?This sample uses a user vo: http://pyamf.org/browser/examples/trunk/simple/flex/src/org/pyamf/examples/simple/User.as
Cheers, Thijs On 14 Jul 2009, at 19:43, Jesse Warden wrote: Got it, makes total sense, thank you! _______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: VO's?Rad, this is really helpful too, thanks!!!
On Wed, Jul 15, 2009 at 3:42 PM, Thijs Triemstra | Collab <lists@...> wrote:
_______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
|
|
Re: VO's?Now I can't reach that Google Code project anymore... worked just fine yesterday, wtf? I believe it's now private?
On Tue, Jul 14, 2009 at 2:25 PM, Joel Hooks <joelhooks@...> wrote:
_______________________________________________ PyAMF users mailing list - users@... http://lists.pyamf.org/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |