Re: py2neo - how to get a node

2015-06-12 Thread Ramiro Morales
On Jun 12, 2015 7:28 PM, "Shekar Tippur"  wrote:
>
> Hello,
>
> I am trying to use py2neo (http://py2neo.org/2.0/ext/ogm.html).
> I am having trouble looking up a node.

Wouldn't this post be more appropriate for the py2neo users mailing list or
similar?

Just in case, you posted your message to the Django users mailing list.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO7PdF__RwnX8qvkgvt1RYsV8_i2UBRjSdW-qC5zv29oZ1OTuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


py2neo - how to get a node

2015-06-12 Thread Shekar Tippur
Hello,

I am trying to use py2neo (http://py2neo.org/2.0/ext/ogm.html).
I am having trouble looking up a node.

Here is my code:

lookupname="Shekar"

Shekar=store.load_indexed('Person','Name','Shekar',Person)


This returns a list. I want the complete object so that I can use in a 
relationship


Like 


store.relate(Shekar, "LIKES", Mango)


When I try this, I get an error:


'list' object has no attribute '__dict__'


- Shekar

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4c5d69b7-3101-482a-8da0-83c75acd6c1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.