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

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?
Yes, I suspect it is. (It's been a while since I was in there.)



Seems like schemaextender is the way to go.
It was recommended to me by JF Roche.

Go to the example on the web. You can have it working in an hour!

--r.



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

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