Kees, I think plone.app.blob modifies the original content types so it's blob-aware. Maybe you didn't specify that your content type implements the interface that ATImage is using?
Otherwise you should (re-)define the field which holds the image using ImageField from plone.app.blob.field which makes it deriving from ATImage pointless indeed... Regards, Martijn > In a site we built, I noticed that subclassing an ATImage causes the image to > be stored in the Data.fs instead of in the blobstorage. (Adding a 3Mb > "MyImage" > type increases Data.fs, not blobstorage. Adding an ATImage only increases the > blobstorage size.) > > I would have thought our custom content type would inherit its parent's > blobstorage behaviour. Anybody know why this doesn't happen? > > As a solution, i'll probably have to override the field. This makes > subclassing > ATImage pointless, so i might as well drop that. > > Some info: > - ArchGenXML-generated content type > - subclasses ATFolder and ATImage > - Plone 4 > > Kees > -- Martijn Jacobs http://www.fourdigits.nl/mensen/martijn-jacobs Four Digits BV http://www.fourdigits.nl Willemsplein 44, 6811 KD, Arnhem tel: +31(0)26 4422700 fax: +31(0)84 2206117 KVK 091621370000 BTW 8161.22.234.B01 _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
