[Zope-PTK] PTK, LoginManager and user maintenance

Dan L. Pierson dan@sol.control.com
Wed, 24 May 2000 11:44:28 -0400 (EDT)


Phillip J. Eby writes:
 > The protocol doesn't exist, because UserSources aren't required to
 > implement any way to add user objects.  Technically, it is up to the user
 > of a LoginManager to add a method to its Methods tab to do this.  If a user
 > source supports adding, then that method can simply call
 > usersourcename.addUser (or newItem) and then fill in the details.  As for
 > changing and deleting, those methods belong to the LoginUser, not its
 > UserSource.

Ah so, PTK should do something like the following?

            manage_addLoginManager(self,
                                   'Persistent User Source',
                                   ['Basic Cookie Login', 'Basic Auth Login'],
                                   0, 0, 0)
            # self.acl_users was magically created by the above call
            self._getPUS().manage_setStorage('DemoPortal/LoginMember')
            self.acl_users.manage_addDocument('addUser', '', 'dtml/addUser.dtml)