[Zope-CMF] Implicitly Addable (global allow)

Florent Guillaume fg@nuxeo.com
Sun, 26 Jan 2003 20:01:54 +0100


In article <b0lb2o+vcrc@eGroups.com> you write:
> Exception Type TypeError 
> Exception Value 'in <string>' requires character as left operand 
> 
> 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 Products.FileSystemSite.FSDTMLMethod, line 112, in __call__ 
> Module DocumentTemplate.DT_String, line 474, in __call__ 
> Module DocumentTemplate.DT_Let, line 76, in render 
> Module DocumentTemplate.DT_Util, line 201, in eval
> __traceback_info__: newid 
> Module <string>, line 2, in f 
> Module Products.CMFCore.PortalFolder, line 363, in invokeFactory 
> Module Products.CMFCore.TypesTool, line 175, in allowType 

That's a bug in your code: you somehow managed to make
ob.allowed_content_types be a string when it should always be a list
of strings.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com