[Zope-dev] [Checkins] SVN: z3c.layer.pagelet/trunk/ Removed dependency on``zope.app.security`` by using the new packages``zope.authentication`` and ``zope.principalregistry``.

Dan Korostelev nadako at gmail.com
Mon Mar 16 12:13:43 EDT 2009


2009/3/16 Michael Howitz <mh at gocept.com>:
> Am 16.03.2009 um 16:43 schrieb Roger Ineichen:
> [...]
>>> It's a pagelet implementation of login/logout, so I thought
>>> it matches the goal of this package very well.
>>
>> Yes and No. It's of corse usefull to have predefined login
>> views available. But I use a z3c.form based implementation
>> for this.
>
> I thought this as the next step: the template for cookie login is not
> really nice and makes wrong assumptions (e. g. unauthenticated
> principal has the id zope.anybody). So I planned to replace it with a
> z3c.form based login form. But this would add a new dependency and I
> was not sure if this is a good idea.

Look at my latests changes in zope.app.authentication loginForm
template, it cleans up the template by separating
camefrom/unauthenticated logic into a python class. I think you should
do the same for your implementation.

-- 
WBR, Dan Korostelev


More information about the Zope-Dev mailing list