[Zope] Re[2]: [Zope] User Sessions

John Morton John Morton <jwm@plain.co.nz>
Thu, 1 Feb 2001 12:38:03 +1300 (NZDT)


On Wed, 31 Jan 2001 18:39:24 -0500 Chris McDonough <chrism@digicool.com> wrote:

> Yeah the "dissociating user objects from their user names" problem is the
> hardest one to solve right now because it requires changes to the core that
> may have the potential to break 3rd-party user folders which are based on
> the Zope basic user folder.  It's definitely required for a (real)
> membership system which allows users to change their usernames.

I was going to solve it for my situation by storing login information in a
SQL table with a numeric primary key and the login names being mearly
unique. I can then expose the primary key in the user object and use it
(via a method or whatever) as the relation key - which is exactly what you
do between tables in a relational database anyway :-)

In the scenario where all the per user data is being stored in the user
object itself, then there is nothing for the user name to be relational
with, so there's no problem if the username is changed. 

John