[prev in list] [next in list] [prev in thread] [next in thread]
List: pyamf-users
Subject: Re: [pyamf-users] Custom VO works, not User
From: Jesse Warden <jesse.warden () gmail ! com>
Date: 2009-07-19 22:09:52
Message-ID: 8c7ee65a0907191509j55a20efapa896e99c14f0545a () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
F'ing dope, that it was it! Thanks bro.
On Sun, Jul 19, 2009 at 6:06 PM, Nick Joyce <nick@boxdesign.co.uk> wrote:
> Hi,
>
> If you're using Django and you may need to use select_related to get
> relational properties. Check [1] for more details. If that doesn't solve
> your issue get back with some code and we'll work through the problem.
>
> Cheers,
>
> Nick
>
> [1] - http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4
>
>
>
> On 19 Jul 2009, at 19:21, Jesse Warden wrote:
>
> I can send and receive custom VO's now, it's dope, thanks for the help!
>>
>> However, using a foreign key for a user does't seem to work. A model:
>>
>> class Something(models.Model)
>> user = models.ForeignKey(User)
>>
>> Will return my strongly-typed "SomethingVO" on the client in Flex.
>> However, the user is null.
>> - if I log into admin, it's not null... it's there and has a value
>> - if I comment out the class registration in python, no dice
>> - if I comment out the class registration in Flex, and ensure the VO's
>> aren't compiled into the SWF, no dice
>>
>> ....so why would the admin show the value, but not Flex?
>> _______________________________________________
>> PyAMF users mailing list - users@pyamf.org
>> http://lists.pyamf.org/mailman/listinfo/users
>>
>
> _______________________________________________
> PyAMF users mailing list - users@pyamf.org
> http://lists.pyamf.org/mailman/listinfo/users
>
[Attachment #5 (text/html)]
F'ing dope, that it was it! Thanks bro.<br><br><div class="gmail_quote">On Sun, \
Jul 19, 2009 at 6:06 PM, Nick Joyce <span dir="ltr"><<a \
href="mailto:nick@boxdesign.co.uk">nick@boxdesign.co.uk</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Hi,<br> <br>
If you're using Django and you may need to use select_related to get relational \
properties. Check [1] for more details. If that doesn't solve your issue get back \
with some code and we'll work through the problem.<br>
<br>
Cheers,<br>
<br>
Nick<br>
<br>
[1] - <a href="http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4" \
target="_blank">http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4</a><div><div></div><div \
class="h5"><br> <br>
<br>
On 19 Jul 2009, at 19:21, Jesse Warden wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div></div><div class="h5"> I can send and receive \
custom VO's now, it's dope, thanks for the help!<br> <br>
However, using a foreign key for a user does't seem to work. A model:<br>
<br>
class Something(models.Model)<br>
user = models.ForeignKey(User)<br>
<br>
Will return my strongly-typed "SomethingVO" on the client in Flex. \
However, the user is null.<br>
- if I log into admin, it's not null... it's there and has a value<br>
- if I comment out the class registration in python, no dice<br>
- if I comment out the class registration in Flex, and ensure the VO's aren't \
compiled into the SWF, no dice<br> <br>
....so why would the admin show the value, but not Flex?<br></div></div>
_______________________________________________<br>
PyAMF users mailing list - <a href="mailto:users@pyamf.org" \
target="_blank">users@pyamf.org</a><br> <a \
href="http://lists.pyamf.org/mailman/listinfo/users" \
target="_blank">http://lists.pyamf.org/mailman/listinfo/users</a><br> </blockquote>
<br>
_______________________________________________<br>
PyAMF users mailing list - <a href="mailto:users@pyamf.org" \
target="_blank">users@pyamf.org</a><br> <a \
href="http://lists.pyamf.org/mailman/listinfo/users" \
target="_blank">http://lists.pyamf.org/mailman/listinfo/users</a><br> \
</blockquote></div><br>
_______________________________________________
PyAMF users mailing list - users@pyamf.org
http://lists.pyamf.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic