Re: Authentication for my custom member type
from
Rob Miller
on Dec 18, 2006 03:50 PM
Tim Hicks wrote:
> Hi,
>
> I now have a new problem with my custom member type...
>
> Authentication never happens for instances of my type because
> membrane.factory.categorymapper.CategoryMapper.isInCategory(...) returns
> False for my type when called from line 113/114 of
> membrane.plugins.usermanager. This causes the authenticateCredentials
> method to return None.
>
> Of course, this does not happen for the standard Remember Member, but I
> can't figure out what the category mapper code is meant to be doing, or
> what I haven't done to please it. Can anyone provide any clues?
each member type has a set of "active" workflow states. only when you're
member object is in one of these active workflow states will authentication be
allowed.
you can see an interface for this in the ZMI, on the 'status map' tab of the
membrane_tool.
you can also manipulate it programmatically, but using adapting the
membrane_tool to the ICategoryMapper interface. then you can use
listCategorySets to see the existing category sets, and listCategories to see
the categories in a given set. it should be pretty straightforward from
looking at the existing values how you can set your own.
-r