[Zope] Subclassing Folder
Peter Bengtsson
mail@peterbe.com
Sun, 02 Jun 2002 18:43:05 +0100
--=======43923349=======
Content-Type: text/plain; x-avg-checked=avg-ok-5AE44F62; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit
>
>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.
Peter
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>
>
>---
>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
--=======43923349=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-5AE44F62
Content-Disposition: inline
---
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
--=======43923349=======--