On 15 Apr 2008, at 07:45, Dylan Jay wrote:

That means every ATFile in the system will have those new fields right?

It's not essential that all ATFiles have those fields. For example, for a PloneGetPaid project, I created a schemaextender subclass IRichDocumentDecorator to add fields to a RichDocument, IF they provide IShippableMarker:

    <adapter
        provides=".interfaces.IRichDocumentDecorator"
        for="Products.PloneGetPaid.interfaces.IShippableMarker"
        factory=".browser.storeitemdecorator.RichDocumentDecorator" />

You could mark your type at the time you handle the upload, once you have inspected the file type. Rocky began doing this 18 months ago in Plone4Artists, which has probably moved further along this path.

Good luck,
--r.
Russ Ferriday - Topia Systems - Open Source content management with Plone and Zope [EMAIL PROTECTED] - office: +44 2076 1777588 - mobile: +44 7789 338868 - skype: ferriday

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to