> > Class PersonBO(Person): > > def Block(): > > blocked = True > > <OT> > shouldn't it be: > class PersonBO(Person): > def block(self): > self.blocked = True > </OT>
Yes, it should be as you mentioned. However, I had posted it to elaborate the case. Actually, I tested using the following code: class PersonBO(Person): pass > > As far as my project is concerned, I have found out some other way of > > doing the things, > > Care to explain your solution ? For the time being, I am not separating the plumbing and business logic. When I need to, I shall come back to this post, study all the ideas suggested, and jot down the pattern suitable to me. The code pattern using metaclass looked interesting to me. Thanks Sanjay -- http://mail.python.org/mailman/listinfo/python-list