Hi, I have a main class called JobOfferClass and three child classes InternshipClass, FullTimeJobClass, and TemporalJobClass. When I changed the "view" method in the parent class, the child classes continued using the old view class. I restarted Zope and erased my browser's cache, but it didn't work. So, I just copied the view method in one of the children and it worked. Does the child ZClasses store a copy of the parent class when created or it's a bug? Had somebody else seen this behavior? Thanks in advanced, Josef
Josef Meile wrote at 2003-2-20 11:00 +0100:
I have a main class called JobOfferClass and three child classes InternshipClass, FullTimeJobClass, and TemporalJobClass. When I changed the "view" method in the parent class, the child classes continued using the old view class. I restarted Zope and erased my browser's cache, but it didn't work. So, I just copied the view method in one of the children and it worked.
Are the base class and derive classes in the same product? There are known issues (with respect to import/export) when they are in different products.
Does the child ZClasses store a copy of the parent class when created or it's a bug? Had somebody else seen this behavior?
Sounds like a bug where the derived classes share one copy of the method different from that of the base class. I have no idea how this can happen... Dieter
Are the base class and derive classes in the same product? No, they're in different products
There are known issues (with respect to import/export) when they are in different products. Perhaps that's the problem I'm having. When I update, I exported and then reimported my ZClasses.
Josef Meile wrote at 2003-2-21 10:07 +0100:
Are the base class and derive classes in the same product? No, they're in different products
There are known issues (with respect to import/export) when they are in different products. Perhaps that's the problem I'm having. When I update, I exported and then reimported my ZClasses.
Then, almost surely, you hit the known problem. It is probably very difficult to fix it. Dieter
participants (2)
-
Dieter Maurer -
Josef Meile