gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] Need help with triggers


From: Reinhard Mueller
Subject: Re: [GNUe] Need help with triggers
Date: Fri, 04 May 2007 14:42:30 +0200

Am Freitag, den 04.05.2007, 12:54 +0530 schrieb Amil Ganju:
> customerIndex = session.find (crm_metadata)
> customerIndex = session.find(metadata)

customerIndex = session.find('metadata')

You just have to quote the class name. It is a string.

> Also while we are at this I had another query. How can I delete
> entries from a detail class from an OnDelete trigger on the master
> class. 

details = session.find('detailclass', {'linkproperty': self.gnue_id})
for detail in details:
    detail.delete()

Thanks,
-- 
Reinhard Mueller
GNU Enterprise project (http://www.gnuenterprise.org)

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]