[Zope] Missing input variable

Florian Lindner mailinglists at xgm.de
Wed Oct 1 07:34:12 EDT 2003


Hello,
I use this script with Simple User Folder. It's being called when a new 
user is added:

## Script (Python) "addUser"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=name, password, roles
##title=
##
for role in roles:
   csv_role = csv_role + "," + role

return context.addUser_test(name, password, roles)

es soll aus der Liste roles einen CSV-string machen ( 
['Manager','Owner'] -> 'Manager,Owner'

This is the ZSQL-Method addUser_test:

<params>name password roles</params>
INSERT INTO users(name,password,role) VALUES
(<dtml-sqlvar name type="string">,<dtml-sqlvar password 
type="string">,<dtml-sqlvar roles type="string">)


But this raies an error when I try to add a user with the ZMI.

Exception Type      Missing Input
Exception Value     Missing input variable, <em>name</em>

Traceback (innermost last):

     * Module ZPublisher.Publish, line 98, in publish
     * Module ZPublisher.mapply, line 88, in mapply
     * Module ZPublisher.Publish, line 39, in call_object
     * Module AccessControl.User, line 937, in manage_users
     * Module AccessControl.User, line 865, in _addUser
     * Module Products.SimpleUserFolder.SimpleUserFolder, line 93, in 
_doAddUser
     * Module Shared.DC.Scripts.Bindings, line 252, in __call__
     * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
     * Module Products.PythonScripts.PythonScript, line 314, in _exec
     * Module Script (Python), line 4, in addUser
       <PythonScript at /centershock/addUser used for 
/centershock/acl_users>
       Line 4
     * Module Shared.DC.ZRDB.DA, line 415, in __call__
     * Module DocumentTemplate.DT_String, line 474, in __call__
     * Module Shared.DC.ZRDB.sqlvar, line 99, in render

Missing Input: Missing input variable, <em>name</em>

All form-fields were filled in, what's the fault?
Thanks,
Florian




More information about the Zope mailing list