[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: dtml-let ni="newItem(key=REQUEST['key'])" nips="ni.propertysheets.get('Basic')" dtml-call

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 am

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.

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