[Zope3-Users] Form-based login utility
James Taylor
j.cole.taylor at gmail.com
Wed Jun 7 16:50:44 EDT 2006
Nosir, you're absolutely right. The only reason I do that differently
is that I have more than one credentials plugin in my PAU, that accept
different login/pass fields of authentication depending on where you
are in the site, so one global login form won't work for my app. But
for a site that has only one credentials set, that's definitely an
easier/better way to go.
On 6/7/06, mats.nordgren <mats at ronin-group.org> wrote:
> Unless I'm missing something, this would only put the login page at the root
> of the site, not any sub objects. To make this work on all sub objects of
> ISiteBase you'd have to make a marker interface and implement it on all sub
> objects. Having SiteBase be a Folder you are just a push of the button away
> from making it a full blown site and then using my suggestion to setup the
> login form on a site-by-site basis.
>
> Sincerely,
>
> Mats
>
> On Wed, 7 Jun 2006 10:41:41 -0400, James Taylor wrote
> > Miklos,
> > It's also possible to just build your own login page, and associate
> > it with a particular content object interface. I routinely build a
> > simple Folder derivative for my own site like class SiteBase(Folder),
> > so that it implements an interface that I can put a view in front
> > of by letting my for="my.app.interface.ISiteBase". That way you can
> > set up your own login form to be associated with your particular
> > site base object, if you don't want the login page to have to
> > service logins for the whole of your zope3 instance, but just a
> > particular subsite.
> >
> > Pete
> >
> > On 6/7/06, mats.nordgren <mats at ronin-group.org> wrote:
> > >
> > > Miklos,
> > >
> > > You should be able to customize the form 'loginform.pt' from
> > > zope.app.authentication.browser. In the session credentials plugin you can
> > > then specify the new login form name.
> > >
> > > Cheers,
> > >
> > > Mats
> > >
> > >
> > >
> > > On Tue, 6 Jun 2006 23:11:18 +0200, Jegenye 2001 Bt (Miklós Prisznyák) wrote
> > >
> > > > Hello,
> > > >
> > > > Is there a reusable site utility somewhere (or failing that just a howto
> > > recipe) for quickly providing a templatable login form?
> > >
> > > > Thanks,
> > > > Miklós
> > > >
> > > > --
> > > > Miklós Prisznyák
> > > > Principal Consultant, owner
> > > > http://www.jegenye.com
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Zope3-users mailing list
> > > Zope3-users at zope.org
> > > http://mail.zope.org/mailman/listinfo/zope3-users
> > >
> > >
> > >
>
>
More information about the Zope3-users
mailing list