Re: [Maypole] Maypole::Plugin::Authorization

From: Peter Speltz (peterspeltz at yahoo.com)
Date: Thu Jan 27 2005 - 22:39:04 GMT


--- Dave Howorth <Dave.Howorth at acm.org> wrote:

> ok_tables is a little different, to my mind. In standard Maypole, it's
> just a cache for display_tables, which in turn is an extremely simple
> and limited access control system (there are tables everyone can access
> and there are hidden tables that no-one can access).

Ah dave, can't you be persuaded? ok_tables is the one in power, the one that's
checked for access. The key difference is "display". Maypole provides ability
for one to distinguish between talbes they want advertised to user for access
and tables that user can access but are not necessarily need to be advertised.
That's why tabs are made of display tables rather than ok_tables. Internal
maypole simply adds display tables to ok_tables. ok_tables is really the one in
power and not display tables. It's just there to help simplify the view of the
system. A significant difference if you ask me and you give way too much
credit to display_tables which could be deleted without adverse effects on
anything but the view. :)

>
> Over time it would be better to abstract the access control functions in
> standard Maypole better so that it's easier to see what they are and
> what any plugin replacement needs to do. Somebody might build
> replacements for all or part of the access control based on LDAP or
> Kerberos or PAM, for instance.
>
> > Ahh, this brings me to my enduring quesiton of model and view separation.
> > A model knows the data and the forms of the data it needs. Its all defined
> in
> > db shema. In short the model knows exactly what type of form it needs and
> the
> > View knows none of this. Its the dumbest thing on the block. So my
> argument is
> > why should I the programmer program inputs in the views? The model can do
> that
> > so much easier since it knows what it needs.. Then the view will just worry
> > about displaying them. Making things pretty. This is why i'm a big fan of
> > AsForm and HTML::Element. They saved my life :).
>
> This is probably my biggest area of confusion as well. On the one hand,
> people have expressed the opinion (paraphrasing) that the templates are
> the view and all of them should be customised. On the other hand,
> there's the idea that templates should be maintained by graphics
> designers that know no Perl. Difficult to reconcile!
>
> I start from the viewpoint that if there's anything that would be done
> differently in the way something is shown on a web page or a mobile
> phone or via a telephone speech system or when everything is done in
> Japanese, then that different thing belongs in the view rather than the
> model. In real life, the code's a lot easier if we blur the boundary but
> then the design decisions get harder to make.
>
> Cheers, Dave
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.5 - Release Date: 26/01/05
>
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>

=====
pjs

                
__________________________________
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT