Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 20, 2011 15:56:59

Joni @.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

DjangoAMF status


Hello,
Does anybody know if this project is active, or if it works OK with
django < 1.3 ? Last update was 2 years ago...
Or maybe there are other alternatives? Any info helps.

DjangoAMF manual:http://djangoamf.sourceforge.jp/index.php?UserManual_en--
Joni

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 20, 2011 17:31:19

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

DjangoAMF status


Maybe PyAMF is another choice.

-------------------------------------------------------
Blog:http://douhua.imTwitter:http://twitter.com/genednaWebsite:http://douhua.im-------------------------------------------------------


On Thu, Jan 20, 2011 at 10:58 PM, Joni @ mindpulse <decimea...@gmail.com>wrote:

> Hello,
> Does anybody know if this project is active, or if it works OK with
> django < 1.3 ? Last update was 2 years ago...
> Or maybe there are other alternatives? Any info helps.
>
> DjangoAMF manual:http://djangoamf.sourceforge.jp/index.php?UserManual_en>
> --
> Joni
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 21, 2011 15:40:00

m.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

DjangoAMF status


In addition to the PyAMF, Flashticle <http://osflash.org/flashticle>,
amfast <http://code.google.com/p/amfast/>, Plasma. <http://plasmads.org/>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 21, 2011 18:50:45

Joni @.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

DjangoAMF status


Comparing all of them, It looks like PyAMF is the way to go, having
oficial sopport for django and all.

Though I'm concerned about one particular issue... Suppose I have two
django models related by a FK.

class Category(models.Model):
name = models.CharField(max_length=100)

class Product(models.Model):
code = models.CharField(max_length=100)
category = models.ForeignKey(Category)


I would need to map both classes to their Actionscript counterparts.
What I'm not sure about is what happens with the FK in Product? Is it
possible to define something like this:


class ASCategory
{
public var name:String;
}

class ASProduct
{
public var code:String;
public var category:ASCategory;
}


Notice that in ASProduct I'm expecting an ASCategory object, not the
category id. If this isn't possible, what will actually happen? Do I
receive the category id? Has anybody worked before with django and
AMF? I'll appreciate any info here!

--
Joni


On Jan 21, 12:39 pm, martinpaju...@gmail.com wrote:
>  In addition to the PyAMF, Flashticle <http://osflash.org/flashticle>,
> amfast <http://code.google.com/p/amfast/>, Plasma. <http://plasmads.org/>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Jan. 25, 2011 09:39:26

n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

DjangoAMF status


On Jan 22, 4:50 am, "Joni @ mindpulse" <decimea...@gmail.com> wrote:
> Comparing all of them, It looks like PyAMF is the way to go, having
> oficial sopport for django and all.
>
> Though I'm concerned about one particular issue... Suppose I have two
> django models related by a FK.
>
> class Category(models.Model):
>     name = models.CharField(max_length=100)
>
> class Product(models.Model):
>     code = models.CharField(max_length=100)
>     category = models.ForeignKey(Category)
>
> I would need to map both classes to their Actionscript counterparts.
> What I'm not sure about is what happens with the FK in Product? Is it
> possible to define something like this:
>
> class ASCategory
> {
>     public var name:String;
>
> }
>
> class ASProduct
> {
>     public var code:String;
>     public var category:ASCategory;
>
> }
>
> Notice that in ASProduct I'm expecting an ASCategory object, not the
> category id. If this isn't possible, what will actually happen? Do I
> receive the category id? Has anybody worked before with django and
> AMF? I'll appreciate any info here!

PyAMF handles ForeignKey relationships the way as Django
conceptualises them - objects attached to other objects.

You will need to use select_related to make Django pull the relations
in the same query.

It should 'just work' and if not, its a bug.

- Nick

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 13th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support