Russ Ferriday wrote:

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.

Is that what the subtype menu does in p4a, just set a marker interface?

Seems like schemaextender is the way to go.


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

Reply via email to