302
302
#XXX Shoud use changes of attributes (ro, ...)
304
304
match = re.match('^\s?(.*?)\((.*?)\)\s?$', callback)
306
306
raise Exception, 'ERROR: Wrong on_change trigger: %s' % callback
307
307
func_name = match.group(1)
308
308
arg_names = [n.strip() for n in match.group(2).split(',') if n.strip()]
309
312
args = [self.expr_eval(arg) for arg in arg_names]
310
315
ids = self.id and [self.id] or []
311
316
response = getattr(self.rpc, func_name)(ids, *args)