[Zope-CMF] Q) Using STI method vs building Python based product

Dieter Maurer dieter@handshake.de
Tue, 6 Aug 2002 21:27:41 +0200


Jeffrey Franks writes:
 > I've created a specialized portal_type
 > using 'Scriptable Type Information' (STI) type object.
 > It is supported by python scripts for view, edit, etc., and
 > a properties page. Now, a number of usage questions
 > come up.
 > 
 > 1) How do I distribute this to multiple sites?
We use "ZSyncer" and (file system based) CVS for this purpose.

That "ZSyncer" can work inside CMF, you need a little patch you can find at

  <http://www.dieter.handshake.de/pyprojects/zope>

 > 2) Is there a way to instance the above aggregate so
 >    that it is more 'like a product' that can be instanced
 >    multiple time throughout the site?
You can write a "FactoryTypeInformation" for it and register
it with a "ContentInit". Then, it will be available in all
instances of your product.


Dieter