#32 — ValueError: Property portrait: unknown type
by
Lucie Lejard
—
last modified
Oct 27, 2011 07:21 PM
| State | Resolved |
|---|---|
| Version: | 1.0 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Lucie Lejard |
| Submitted on | Feb 12, 2007 |
| Responsible |
—
|
| Target release: |
—
|
I am using plone 2.5.2 and zope 2.9.6.
I ran the tests of test_member (I have the version 1.0 svn/unreleased) and i have the following error:
Error in test testMemberPortrait (Products.remember.tests.test_member.TestMember)
Traceback (most recent call last):
File "/Applications/development/Zope-2.9.6/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/remember/tests/test_member.py", line 189, in testMemberPortrait
self.getUser().getProperty('portrait'))
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/remember/tests/test_member.py", line 29, in getUser
return self.portal.acl_users.getUser(mem_id)
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/PluggableAuthService/PluggableAuthService.py", line 210, in getUser
return self._findUser( plugins, user_info['id'], user_info['login'])
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/PluggableAuthService/PluggableAuthService.py", line 731, in _findUser
data = propfinder.getPropertiesForUser( user, request )
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/membrane/plugins/propertymanager.py", line 97, in getPropertiesForUser
psheet = mem_props.getPropertiesForUser(user, request)
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/membrane/factories/properties.py", line 62, in getPropertiesForUser
return MutablePropertySheet(self.context.getId(),
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/PluggableAuthService/UserPropertySheet.py", line 99, in __init__
schema = _guessSchema( kw )
File "/Users/lucie/Documents/projects/ISKME/zeo/Products/PluggableAuthService/UserPropertySheet.py", line 77, in _guessSchema
raise ValueError, 'Property %s: unknown type' % k
ValueError: Property portrait: unknown type
Added by
Lucie Lejard
on
Feb 12, 2007 04:50 PM
When i add in the schema :
schema['portrait'].user_property = False
It seems to work with no problem.
Added by
Rob Miller
on
Feb 12, 2007 06:39 PM
This means that you need to update your installed version of PluggableAuthService. This was fixed in PAS's subversion repository about 4 months ago, there was a 1.4.1 release about 7 weeks ago that should work to resolve this issue.
Issue state:
unconfirmed
→
resolved
http://www.zope.org/Products/PluggableAuthService
Changing the setting on the portrait field will prevent the error from happening, but it will also mean that your users won't have a portrait property.
Added by
Rob Miller
on
Feb 12, 2007 07:53 PM
whoops, my bad. it seems that fix never made it into the 1.4.X branch, so as of this writing you'll need to use PAS from trunk. i'll see if the PAS folks are okay w/ merging this into the 1.4 branch for the next release.
Added by
(anonymous)
on
May 09, 2007 03:44 PM
Just to update this issue, I tried PluggableAuthService 1.4.2 released in April but still get the same error.
Added by
(anonymous)
on
Jun 27, 2007 03:35 PM
Å note for anyone looking into this issue: a related thread is on http://plone.org/products/remember/issues/44
No responses can be added.
If you can, please log in before submitting a reaction.
