Thanks but I also want to complain some sentences: I think maybe it should be put into the documentation of DAL and more functions like "having" "aggregation[count,sum,min,max,avg]" "Migrate" should also be put into it.
If each set of functions can be noted "wether it can be done into GAE", it will be better. 2009/2/1 mdipierro <mdipie...@cs.depaul.edu> > > It does support self refenecing but you cannot have two fields with > same name. > > you can do this > > db,.define_table('friendship',db.Field('friend1',db.friend),db.Field > ('friend2',db.friend)) > > db.friendship.insert(friend1=9,friend2=20) > > On Feb 1, 7:10 am, BearXu <bearx...@gmail.com> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---