[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Appendix B:
API Reference
webmaster at zope.org
webmaster at zope.org
Wed Aug 6 17:46:12 EDT 2003
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx#3-558
---------------
API method for creating a new user object. Note that not all
user folder implementations support dynamic creation of user
objects. Implementations that do not support dynamic creation
of user objects will raise an error for this method.
% Anonymous User - June 4, 2002 2:09 pm:
Please document the argument types; for example, roles must be a list
(e.g., '[Manager]') and not a string. Zope will accept 'Manager' and
create a user, but it's an invalid entry--when you click on it, Zope
gives an error.
Also, please explain the **kw (keywords) argment.
% Anonymous User - Sep. 29, 2002 5:39 pm:
use [' '] as parameter for domains and it works. domains is of type tokens.
somewhere in the code i found out that an empty token equals [' '] and not ['']
% marko - Aug. 6, 2003 4:46 pm:
eeeh, if i do this
context.acl_users.userFolderAddUser(email ,wachtw ,['Authenticated', 'customer'], [' '],0)
zope says that userfolderadduser only takes 5 arguments and 6 are given??
i only count 5 there TBH.
If i don't include the domain in there it seems to work, but the user can't log in!
they get this error:
Error Type: TypeError
Error Value: tuple() argument must be a sequence
I can't find any reasonable documentation for this :(
if u know how to solve this, mail me at marko at -removeme-akdr.nl
More information about the ZDP
mailing list