What I mean is that Web2py maybe didn't support the self-link table.
For example
db.friendship.insert(user_id=9 , user_id=20)

Then in friendship table it should be:
friendship  user_id  user_id
    1             9         20

But now it is:
friendship  user_id  user_id
    1             20         20



2009/2/1 mdipierro <mdipie...@cs.depaul.edu>

>
> I needs some context. I do not see the problem.
>
> Massimo
>
> On Jan 31, 8:14 pm, BearXu <bearx...@gmail.com> wrote:
> > PLUS:if we want to add an friendship between two friends.
> > we can not do:
> >  db.friendship.insert(user_id=aid , user_id=pid)
> >
> > Wether it a bug?
> >
> > 2009/2/1 BearXu <bearx...@gmail.com>
> >
> > > Now we can:
> >
> > > me=db(db.person.id==person_id).select()[0]
> >
> > > me.name
> >
> > > me.update_record(name="Max")
> >
> > > So can I def some methods like:
> >
> > > me.personal_def_method
> >
>

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

Reply via email to