[Product-Developers] Re: is schemaextender the way to add more metadata to pdfs

Dylan Jay gmane at dylanjay.com
Tue Apr 15 16:07:26 UTC 2008


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.





More information about the Product-Developers mailing list