[Zope] TypeError: 'in <string>' requires character as left operand

Dieter Maurer dieter at handshake.de
Sun Nov 9 03:14:41 EST 2003


Gordon Sullivan wrote at 2003-11-7 13:52 -0500:
 > The traceback is at the bottom.
 > ...
 > > I seem to have messed up my Plone real good.  I'm not sure, but I think
 > > what I did to cause this was clicking the drop-down on the preferences
 > > screen for the editor.  There was only one selection, 'None'.  
 > > 
 > > Now if I try to access /folder_contents for any folder, it gives me a
 > > Site error and the message:
 > >     
 > >     "'in ' requires character as left operand".  
 > ...
 >  Module Products.PageTemplates.PageTemplate, line 95, in pt_render
 >   - <FSPageTemplate at /Plone/folder_contents used for /Plone/Members>
 > ...
 >    - Line 66, Column 12
 >    - Expression: <PythonExpr here.sortObjects(here.allowedContentTypes())>
 >    - Names:
 > ...
 >        'here': <PloneFolder instance at 0229AA48>,
 >   Module Products.CMFCore.TypesTool, line 175, in allowType
 > TypeError: 'in <string>' requires character as left operand

This indicates that the "allowed_content_types" attribute
of the PloneFolder "/Plone/Members" is a string.
It should be a sequence of strings.

There are HowTos around ("zope.org", "zopelabs") how to
access the ZODB in an interactive Python interpreter.
You can use this approach to fix the attribute.

When you have read (at least one of) these HowTos and still have
questions, you can come back.

-- 
Dieter



More information about the Zope mailing list