py2neo - how to get a node

16 views
Skip to first unread message

Shekar Tippur

unread,
Jun 12, 2015, 6:28:18 PM6/12/15
to django...@googlegroups.com
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

Ramiro Morales

unread,
Jun 12, 2015, 11:25:59 PM6/12/15
to django...@googlegroups.com


On Jun 12, 2015 7:28 PM, "Shekar Tippur" <cti...@gmail.com> 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.

Reply all
Reply to author
Forward
0 new messages