Re: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby
At 08:34 PM 11/27/00 -0500, [EMAIL PROTECTED] wrote: >Thanks Phillip. Is there a way to pass my REQUEST info to the ADD >Trigger? > >I am under the impression that only "self" and some other ZPattern >specific properties are available to the trigger. You also have access to everything in the a

[Zope-dev] Create Virtual DataSkin

2000-11-27 Thread bentzion
Thanks Phillip. Is there a way to pass my REQUEST info to the ADD Trigger? I am under the impression that only "self" and some other ZPattern specific properties are available to the trigger. Thanks. > Phillip J. Eby You can't have an ADDED and CHANGED both fire in the same subtra

RE: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby
At 02:34 PM 11/27/00 -0800, Ben Schochet wrote: >Seems that way Steve. > >I have tried to do this in an external method with self.get_transaction.commit(1) before doing the changeProperties, but that didn't seem to work. You want get_transaction().commit(1), if you're doing it from Python. DataS

RE: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Ben Schochet
Seems that way Steve. I have tried to do this in an external method with self.get_transaction.commit(1) before doing the changeProperties, but that didn't seem to work. Is there another way to do this? the CHANGE trigger works fine on its own. How are others creating new items with properties

Re: [Zope-dev] Create Virtual DataSkin

2000-11-27 Thread Steve Spicklemire
Hmm... since triggers are done at transaction commit time, could it be that the 'change' trigger doesn't happen if the change occurs on the same transaction as an 'add'? -steve > "bentzion" == bentzion <[EMAIL PROTECTED]> writes: bentzion> This simple issue is driving me crazy... I a

[Zope-dev] Create Virtual DataSkin

2000-11-27 Thread bentzion
This simple issue is driving me crazy... I am trying to create a DataSkin with some Properties in a MySQL database. So I have an ID, NAME, and DESCRIPTION that is in REQUEST and using: The item gets created but the Properties are not changed. Can someone please post the ADD/CHNAGE