Hi, I'm creating a ZClass to store information about a user account (contact details, email address, address, phone number, etc) and I was wondering if there was any way that I could have 'user' as a base class so I could actually use my Account objects as user objects (ie: as users in acl_users)? I tried putting 'User' as one of their base classes but that still doesn't let me add them into the acl_users folder. Any ideas? Chris
Hi. I used a GUF for that purpose, since youhave finer control of the user-objects. You have to select the GUF-User as base-class, though. (Unfortunately is is speeld exaclty like a normal User-object in the ZClass-Baseclass-Listview (but it is positioned right beneath Guf-Folder). Regards, Ingo. On Fri, 5 May 2000, Chris Withers wrote:
Hi,
I'm creating a ZClass to store information about a user account (contact details, email address, address, phone number, etc) and I was wondering if there was any way that I could have 'user' as a base class so I could actually use my Account objects as user objects (ie: as users in acl_users)?
I tried putting 'User' as one of their base classes but that still doesn't let me add them into the acl_users folder.
Any ideas?
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I guess I'm wondering why User is available as a base class if you can't use it to provide a modified user... Any ideas anyone? Chris Ingo Assenmacher wrote:
Hi.
I used a GUF for that purpose, since youhave finer control of the user-objects. You have to select the GUF-User as base-class, though. (Unfortunately is is speeld exaclty like a normal User-object in the ZClass-Baseclass-Listview (but it is positioned right beneath Guf-Folder).
Regards, Ingo.
On Fri, 5 May 2000, Chris Withers wrote:
Hi,
I'm creating a ZClass to store information about a user account (contact details, email address, address, phone number, etc) and I was wondering if there was any way that I could have 'user' as a base class so I could actually use my Account objects as user objects (ie: as users in acl_users)?
I tried putting 'User' as one of their base classes but that still doesn't let me add them into the acl_users folder.
Any ideas?
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi Chris. On Fri, 5 May 2000, Chris Withers wrote:
I guess I'm wondering why User is available as a base class if you can't use it to provide a modified user...
Any ideas anyone?
I think that is for the purpose of a "roll-your-own" user folder, since User-class offers some vital methods for authentication I think that standard acl-user-folders are, for the sake of simplicity limited to add standard user-objects. Regards, Ingo.
On Fri, 5 May 2000, Ingo Assenmacher wrote:
I guess I'm wondering why User is available as a base class if you can't use it to provide a modified user...
Any ideas anyone?
In theory, it is possible to modify GUF to allow pluggable users (and you thought a pluggable brain was cool). That part has never been written, however, as I had more urgent things to do :-)
I think that is for the purpose of a "roll-your-own" user folder, since User-class offers some vital methods for authentication I think that standard acl-user-folders are, for the sake of simplicity limited to add standard user-objects.
Sorry about it having the same name as the default User object - I didn't pick up that the ZClass creation would of course have a flat namespace and its probably too late to change it now :-( -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
Stuart 'Zen' Bishop wrote:
Sorry about it having the same name as the default User object - I didn't pick up that the ZClass creation would of course have a flat namespace and its probably too late to change it now :-(
I don't think this is what's going on. The instance of Zope which I was playing with this on doesn't have GUF installed. Does anyone know what this non-GUF User Base Class is for and how you can use it? cheers, Chris PS: Zope 2.1.6, with Tracker installed, but no GUF...
Hi. I once digged into the standard user object (some time ago). So I will scramble up some memories I have... The standard user-obj provides methods to authenticate against the security system and sotres password and domain stuff like that. You can subclass it and enrich it with other information, but you will have to subclass the standard user-folder too in order to create some instances of it (since the original user-folder only creates standard users). I did this and it worked fine. Anyway, I changed to guf because I needed fancy login screens and stuff like that ;) Regards, Ingo. On Fri, 12 May 2000, Chris Withers wrote:
Does anyone know what this non-GUF User Base Class is for and how you can use it?
In article <Pine.SOL.4.10.10005121453540.13910-100000@marlowe.informatik.rwth-aachen.de>, Ingo Assenmacher <ass@Pool.Informatik.RWTH-Aachen.DE> wrote:
You can subclass it and enrich it with other information, but you will [...] instances of it (since the original user-folder only creates standard users). I did this and it worked fine. Anyway, I changed to guf because I needed fancy login screens and stuff like that ;)
LoginManager gives you GUF-like capabilities, and also supports using your own classes for users. Create a ZClass that derives from LoginUser and choose it on the Storage tab of the UserSource. You can do some really interesting things with this. As a simple example, give your ZClass an index_html method that displays the user's profile, and you can go to http://www.yoursite.com/zope/acl_users/jsmith and see the profile for that user.
participants (4)
-
Chris Withers -
Ingo Assenmacher -
Stuart 'Zen' Bishop -
tsarnaļ¼ endicor.com