[Product-Developers] at schemaextender not working right with portal factory

Petri Savolainen petri.savolainen at iki.fi
Wed Sep 12 10:31:31 UTC 2012


Hello,

I have an add-on whereby ATEvents are atschema-extended only if they are
created inside a folder with a particular interface. This is done by
listening for the ATEvent creation event and then checking the parent in
the event handler.

This works fine when portal factory is not used, but with it, the initial
AT creation/edit form gets rendered using the original schema, not the
extended one. Upon subsequent edits of the new instance, the schema is
there and everything works as it should.

Any advice would be appreciated. I took a look at the FactoryTool,
BaseObject and Schema sources already, but got pretty much nowhere, nor did
Google find anything about this.

Thanks,

 Petri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120912/6fa865e9/attachment.html>


More information about the Product-Developers mailing list