Title: RE: [Zope] Product inhetitance question (similar question)
And what happen if the Class A is in a package PA.
Clabb B is in a package PB.
How do you access the namespace of PA from PB ?
When I have tried, the inherited methods from A where not visible
from B, and I
NABETH Thierry writes:
And what happen if the Class A is in a package PA.
Clabb B is in a package PB.
How do you access the namespace of PA from PB ?
from PA import A, . whatever you need
class B(A):
When I have tried, the inherited methods from A where not visible
from B,
Well by inheritance B has all the methods, properties etc you have in A. So
the answer is yes, if A has the foobar method then B will have a foobar
method.
Or do I misunderstand your question?
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the
- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: "Daniel Rusch" [EMAIL PROTECTED]
Sent: Thursday, August 17, 2000 11:21 AM
Subject: Re: [Zope] Product inhetitance question
Ah... ok sorry you are right, stuff outside the class doesnt get
in
PROTECTED]
Sent: Thursday, August 17, 2000 9:40 AM
Subject: Re: [Zope] Product inhetitance question
Sorry to keep bothering you, but I'm on the threshold of success
my B class has an extra property, therefore B's manage_edit needs to
address
this. In C++ I could overri