[Zope-dev] DataSkin propoerty Sheets/Providers.

Phillip J. Eby pje@telecommunity.com
Thu, 03 Aug 2000 19:55:39 -0500


At 05:38 PM 8/3/00 -0600, Bill Anderson wrote:
>"Phillip J. Eby" wrote:
>> 
>> PersistentSheetProviders can do what you want - *but* there is one
>> drawback.  PSP's have no concept of a sheet schema, so you have to add the
>> sheet and set up its schema in code for *each instance*. 
>
>Rats. :/
>

I forgot to mention, but you can also create your own sheet provider
(possibly derived from PSP) that creates sheets of the kind you want, and
since all providers are able to receive the _objectAdding() event, you can
have it happen as soon as the object knows it's being added, without even
waiting for transaction commit.  You would have to write such a provider in
Python directly, however.