When I make a ZClass that inherits from an image object and I make one instance. The instance doesn't have the "add" form of Image by default. Should it? I think it should. Am I doing something wrong? Daniel
Daniel Ajoy wrote:
When I make a ZClass that inherits from an image object and I make one instance. The instance doesn't have the "add" form of Image by default. Should it? I think it should.
Well, by ZClass definitions it should. But you shouldn't be usign ZClasses, they suck! (tm) ;-)
Am I doing something wrong?
um... Chris
On 5 Sep 2003 at 15:09, Chris Withers wrote:
Daniel Ajoy wrote:
When I make a ZClass that inherits from an image object and I make one instance. The instance doesn't have the "add" form of Image by default. Should it? I think it should.
Well, by ZClass definitions it should. But you shouldn't be usign ZClasses, they suck! (tm) ;-)
What should I be using instead? Just basic objects, relational-databases, and forms? Daniel
Daniel Ajoy wrote at 2003-9-5 11:39 -0500:
On 5 Sep 2003 at 15:09, Chris Withers wrote:
Daniel Ajoy wrote:
When I make a ZClass that inherits from an image object and I make one instance. The instance doesn't have the "add" form of Image by default. Should it? I think it should.
Well, by ZClass definitions it should. But you shouldn't be usign ZClasses, they suck! (tm) ;-)
What should I be using instead?
Just basic objects, relational-databases, and forms?
You must not believe Chris in all cases. Very often, he has very drastic views... I have successfully build complex applications with ZClasses, back in the time when Zope did not have the "refresh" feature and the CMF. Nowadays, it is almost as easy or even easier to build Python based products for content base classes and use CMF skins for presentation. And such a solution is more efficient (ZClasses are quite slow) and easier to extend and reuse. Nowadays, I rarely use ZClasses. However, this does not mean one should not (under no circumstances) use ZClasses. Dieter
Is there documentation as to how to do that? Could you please send me a link? Daniel On 5 Sep 2003 at 23:13, Dieter Maurer wrote:
Nowadays, it is almost as easy or even easier to build Python based products for content base classes and use CMF skins for presentation. And such a solution is more efficient (ZClasses are quite slow) and easier to extend and reuse.
Daniel Ajoy wrote at 2003-9-3 17:55 -0500:
When I make a ZClass that inherits from an image object and I make one instance. The instance doesn't have the "add" form of Image by default. Should it? I think it should.
Am I doing something wrong?
Maybe, you do not explain your problem correctly? The "add" form does not belong to the class/instance (as it must be there before the instance is created; Python until 2.2 has not had class methods but only instance methods). Therefore, the "add" form is not inherited by a derived class. Dieter
participants (3)
-
Chris Withers -
Daniel Ajoy -
Dieter Maurer