Hi all, I've been surfing around the .py's trying to find a way to add a user via dtml... Am I barking up a non-existant tree? I see alot of _addUser, doAddUser, manage_users.addUser, but nothing seems to work. Is there a method I can call? Thanks for input as always, I hold my wine glass up to you... Paz
On Tue, 13 Mar 2001, Paz wrote:
Hi all,
I've been surfing around the .py's trying to find a way to add a user via dtml... Am I barking up a non-existant tree?
I see alot of _addUser, doAddUser, manage_users.addUser, but nothing seems to work. Is there a method I can call?
Thanks for input as always, I hold my wine glass up to you... Paz
It's always a good idea to check the source HTML for the management interface for questions like these. Through the interface, go to your acl_users folder, add a user, and examine how that form works. It looks to me like you need to call manage_users with certain values set. HTH and thanks for the wine, -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
I've been surfing around the .py's trying to find a way to add a user via dtml... Am I barking up a non-existant tree?
Looking around the .py's first is barking up the wrong tree ;-) As a generical pattern, if you want to do something in DTML, view of the source of the page where you can do it in the management interface. This will either have a method name as the form target or as the name(value?) of a button (something like 'manageDoSomething:method'). That tells you what to look for in the .py's which should save you loads of time :-) HTH, Chris
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paz
I've been surfing around the .py's trying to find a way to add a user via dtml... Am I barking up a non-existant tree?
I see alot of _addUser, doAddUser, manage_users.addUser, but nothing seems to work. Is there a method I can call?
this works for me ... <dtml-call "REQUEST.set('name', name)"> <dtml-call "REQUEST.set('password', password)"> <dtml-call "REQUEST.set('confirm', confirm)"> <dtml-call "REQUEST.set('domains', [])"> <dtml-call "REQUEST.set('roles', ['Student'])"> <dtml-call "acl_users.manage_users('Add', REQUEST, RESPONSE)"> Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act
participants (4)
-
Chris Withers -
Joel Burton -
Max M -
Paz