call a python function in another class from a class?

Posted by user3527697 on Stack Overflow See other posts from Stack Overflow or by user3527697
Published on 2014-06-02T15:05:36Z Indexed on 2014/06/02 15:26 UTC
Read the original article Hit count: 192

Filed under:
|
|

hi i'am begginer in pYthon and openerp , i want to call a function exists in another class for example: i have 2 class :

class a:
def notif_personne_event(self, cr, uid,ids,context=None):

and

import a

class b:
notifier(self, cr, uid,ids,context=None):
       self.notifiernotif_personne_event()

but when i do this an error is displayed telling me that class b have not an attribute notifiernotif_personne_event() someone help me please

© Stack Overflow or respective owner

Related posts about python

Related posts about python-2.7