[Zope-PAS] SQLPASPlugin: error when activating a SQL Mutable Property Provider

Jochen Knuth J.Knuth at ipro.de
Mon Jun 26 12:45:20 EDT 2006


Hi,

i try to use SQLPASPlugin (from the plone collective: 
http://svn.plone.org/svn/collective/PASPlugins/SQLPASPlugin/trunk/).

The User Plugin works, but when i activate a SQL Mutable Property 
Provider i get this error (running a python script which accesses a user):

Site Error

An error was encountered while publishing this resource.

Error Type: TypeError
Error Value: UserPropertySheet constructor argument after ** must be a 
dictionary

If i deactivate the plugin it works, but i want to have access to some 
properties stored in the rdbms.


The traceback:
2006-06-26T18:42:06 ERROR Zope.SiteErrorLog 
http://172.16.0.1:11080/xx/testprop
Traceback (innermost last):
   Module ZPublisher.Publish, line 115, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 41, in call_object
   Module Shared.DC.Scripts.Bindings, line 311, in __call__
   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
   Module Products.PythonScripts.PythonScript, line 323, in _exec
   Module None, line 7, in testprop
    - <PythonScript at /xx/testprop>
    - Line 7
   Module Products.PluggableAuthService.PluggableAuthService, line 223, 
in getUserById
   Module Products.PluggableAuthService.PluggableAuthService, line 721, 
in _findUser
   Module Products.PluggableAuthService.PropertiedUser, line 285, in 
addPropertysheet
TypeError: UserPropertySheet constructor argument after ** must be a 
dictionary

The script:

request = container.REQUEST
RESPONSE =  request.RESPONSE
sp=container.acl_users.getUserById('jok')
print sp
return printed

Anyone got a workong property provider from a sql database?

Ciao,
Jochen

-- 
--------------------------------------------------
Jochen Knuth          WebMaster http://www.ipro.de
IPRO GmbH             Phone ++49-7152-93330
Steinbeisstr. 6       Fax ++49-7152-933340
71229 Leonberg        EMail: J.Knuth at ipro.de



More information about the Zope-PAS mailing list