[Zope-CMF] Question on allowedContentTypes

Carl Rendell cer@sol43.com
Wed, 8 May 2002 18:02:34 -0700


This may not be an intelligent question, but what the hell..

With all of the discussion flying around about invokeFactory and 
such, I'm wondering about two things -

1. when programmatically adding a folder via python script what is 
the best method? I'm currently adding it via:

f = context
if getattr(f.aq_explicit, folderName, 0):
	qst='portal_status_message=Sub+Portal+changed+navigation+exists'
else:
	if (req['portal_class'] == 'department'):
	
	context.manage_addProduct['CMFCore'].manage_addContent(type='Portal 
Folder', id='navigation')

2. I'm now used to creating products and setting content filtering 
attributes in  factory_type_information. Can content filters be set 
arbitrailly at folder creation time, and is that a wise thing?

I'm still not completely clear on the invokeFactory debate, other 
than it seems to present a security risk if someone can call it via 
the web.

~C

Carl E. Rendell
Solution43
Information Distribution Consulting        |   "Ahhhh the power of
cer@sol43.com                              |    acquisition"  - Chef Z