On Wed, Jul 8, 2009 at 9:35 AM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > I think this is gone off topic. The issue is whether it should be > possible for a table to have dynamic columns that are calculated from > the values of other columns and are not stored in the db. One option is to set this up in the DB through a DB view... > Right now > the answer is not. You would have to implement such function outside > of the DAL. Should the DAL provide such additional abstraction layer? The only reason to do this in (or out of) DAL would be general usefulness - lacking other approaches - in applications where backend portability was a goal (e.g. don't want it tied to a particular db's VIEW) .... and that is the question: is this useful? Have people "made" this outside of DAL? Does that happen often enough it is worth putting into DAL? > > Massimo > > On Jul 8, 3:33 am, Hans Donner <hans.don...@pobox.com> wrote: > > On Wed, Jul 8, 2009 at 8:56 AM, Yarko Tymciurak<yark...@gmail.com> > wrote: > > > > > On Wed, Jul 8, 2009 at 1:55 AM, Yarko Tymciurak <yark...@gmail.com> > wrote: > > > > >> On Wed, Jul 8, 2009 at 1:45 AM, Hans Donner <hans.don...@pobox.com> > wrote: > > > > >>> Hi All, > > > > >>> yarko, are you carrying an ID? So if I want to know who you are you > > >>> show me your ID aren't you? > > > > >> I present those to log in; I don't use those to say "I decide I am > > >> authorized!" > > > > Exactly, but you ask the user to present the token - on which you base > > your decission. > > in the @user.is_loggedin case, the user object can get that token from > > the authority (and is thus acting as a proxy for auth). > > > > In my opinion, using @auth or @user is not perse that one wins over > > another - it depends on the philosphy and implementation behind it. > > > > > Actually, if I'm KGB or CIA, and carry a weapon, I suppose I would say > "I > > > decide I am authorized...", I just don't think that's the model > appropriate > > > for web authentication ;-) > > > > That's what happens if you use a framework you don;t trust or behave > > badly yourself... > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---