Personal tools
You are here: Home Lists ZPUG DC List Archives 2005 2005-11 Problem with user search in plone 2.1.1 / David Diskin <david.diskin@verizon.net>
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

Problem with user search in plone 2.1.1 / David Diskin <david.diskin@verizon.net>

Problem with user search in plone 2.1.1
David Diskin <david.diskin(at)verizon.net>
2005-11-12 22:38:49 [ FULL ]
After migration to 2.1.1 from Plone 2.0.5, I am having a problem with  
searching for users.   So, in the Users and Groups administration  
page in Plone, if I enter certain letters like 'a' in the user search  
field, I get this error:

"Site error

This site encountered an error trying to fulfill your request. The  
errors were:

Error Type
     AttributeError
Error Value
     'NoneType' object has no attribute '__of__'
Request made at
     2005/11/12 17:00:41.228 US/Central"

If I enter other letters like 'b' or full names like 'baum", the  
search returns normally with the correct results.

Does this mean some of the user objects are corrupted somehow?  Are  
there suggestions as to how to find out which are the culprits or how  
to proceed.  I have almost 700 users.  Is this a good time to think  
of abandoning the member structure that comes with Plone and go to  
CMFMember?

Here is the traceback:

Traceback (innermost last):
   Module ZPublisher.Publish, line 113, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 40, in call_object
   Module Products.CMFFormController.FSControllerPageTemplate, line  
98, in __call__
   Module Products.CMFFormController.BaseControllerPageTemplate, line  
39, in _call
   Module Products.CMFFormController.ControllerBase, line 243, in  
getNext
   Module Products.CMFFormController.Actions.TraverseTo, line 36, in  
__call__
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 40, in call_object
   Module Products.CMFFormController.FSControllerPageTemplate, line  
98, in __call__
   Module Products.CMFFormController.BaseControllerPageTemplate, line  
42, in _call
   Module Shared.DC.Scripts.Bindings, line 311, in __call__
   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
   Module Products.CMFCore.FSPageTemplate, line 188, in _exec
   Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
   Module Products.PageTemplates.PageTemplate, line 104, in pt_render
    - <FSControllerPageTemplate at /clients/templemicah/org/Plone/ 
prefs_users_overview>
   Module TAL.TALInterpreter, line 206, in __call__
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 711, in do_useMacro
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 426, in do_optTag_tal
   Module TAL.TALInterpreter, line 411, in do_optTag
   Module TAL.TALInterpreter, line 406, in no_tag
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 711, in do_useMacro
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 426, in do_optTag_tal
   Module TAL.TALInterpreter, line 411, in do_optTag
   Module TAL.TALInterpreter, line 406, in no_tag
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 734, in do_defineSlot
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 426, in do_optTag_tal
   Module TAL.TALInterpreter, line 411, in do_optTag
   Module TAL.TALInterpreter, line 406, in no_tag
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 734, in do_defineSlot
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 677, in do_condition
   Module TAL.TALInterpreter, line 250, in interpret
   Module TAL.TALInterpreter, line 477, in do_setLocal_tal
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - URL: file:CMFPlone/skins/plone_prefs/prefs_users_overview.cpt
    - Line 81, Column 8
    - Expression: <PythonExpr (searchstring or findAll) and  
mtool.searchForMembers(name=searchstring) or []>
    - Names:
       {'container': <PloneSite at /clients/templemicah/org/Plone>,
        'context': <PloneSite at /clients/templemicah/org/Plone>,
        'default': <Products.PageTemplates.TALES.Default instance at  
0x8b9fe8c>,
        'here': <PloneSite at /clients/templemicah/org/Plone>,
        'loop': <Products.PageTemplates.TALES.SafeMapping object at  
0xd46874c>,
        'modules':  
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance  
at 0x8bc5f0c>,
        'nothing': None,
        'options': {'args': (),
                    'state':  
<Products.CMFFormController.ControllerState.ControllerState object at  
0xd468aec>},
        'repeat': <Products.PageTemplates.TALES.SafeMapping object at  
0xd46874c>,
        'request': <HTTPRequest, URL=http://205.234.172.107:9080/ 
clients/templemicah/org/Plone/prefs_users_overview>,
        'root': <Application at >,
        'template': <FSControllerPageTemplate at /clients/templemicah/ 
org/Plone/prefs_users_overview>,
        'traverse_subpath': [],
        'user': diskind}
   Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
    - __traceback_info__: (searchstring or findAll) and  
mtool.searchForMembers(name=searchstring) or []
   Module Python expression "(searchstring or findAll) and  
mtool.searchForMembers(name=searchstring) or []", line 1, in  
<expression>
   Module Products.CMFPlone.MembershipTool, line 433, in  
searchForMembers
   Module Products.CMFCore.MembershipTool, line 124, in wrapUser
AttributeError: 'NoneType' object has no attribute '__of__'


Thanks.

==============================
David Diskin, david.diskin(at)verizon.net
Attachments: 
text.html text/html - 22842 Bytes

Re: [ZPUGDC] Problem with user search in plone 2.1.1 / David Diskin <david.diskin@verizon.net>

Re: [ZPUGDC] Problem with user search in plone 2.1.1
David Diskin <david.diskin(at)verizon.net>
2005-11-12 23:27:53 [ FULL ]
More relevant information about this problem.  In looking at the / 
Members folder in the portal_catalog, I noticed some members folders  
- e.g. /Members/smithj  were of type 'Plone Folder' and other member  
folders were of type 'ATFolder'.  I'm guessing this is at the root of  
my problem - i.e. shouldn't all of the member folders be of type  
ATFolder?   And, what can I do to rectify this?  Thanks,

David
On Nov 12, 2005, at 11:43 PM, David Diskin wrote:
[...]
==============================
David Diskin, david.diskin(at)verizon.net
Attachments: 
text.html text/html - 23616 Bytes

Re: [ZPUGDC] Problem with user search in plone 2.1.1 / Jordi Yeh <jordiyeh@gmail.com>

Re: [ZPUGDC] Problem with user search in plone 2.1.1
Jordi Yeh <jordiyeh(at)gmail.com>
2005-11-13 07:46:33 [ FULL ]
Hi David,

David Diskin wrote:
[...]

I would say the tool that should take care of this is portal_atct under 
the site's root using ZMI, and then click on the "Type Migration" tab.
[...]

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: