[Zope] Subclassing Folder
Sun, 02 Jun 2002 18:43:05 +0100
Content-Type: text/plain; x-avg-checked=avg-ok-5AE44F62; charset=us-ascii; format=flowed
>I want to create a new type of folder that, when created, brings some
>specific properties and contents along with it.
A simple python product will do. Just subclass it to OFS.Folder.Folder and
stick in your manage_afterAdd()
(when using manage_afterAdd(), note a previous list email about using this
for ZPT by me)
>I presume I will want to use a ZClass for this, but given all the warnings
>I've received about their relative fragility, I wanted to check with the
>list to be sure I'm not either overlooking a better solution or acting in
>ignorance of a packaged solution.
ZClasses are suitable for less serious classes.
Try to go for python product first and foremost if you can.
>Zope maillist - Zope@zope.org
>** No cross posts or HTML encoding! **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.361 / Virus Database: 199 - Release Date: 2002-05-07
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-5AE44F62
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 2002-05-07