ZClass syntax question...
I'm new to developing Zope products and I'm trying to understand how I can add funcitonality to a ZClass. Specifically, What is the syntax to : 1. During intialization add an additional member to the ZClass (not a property, a member). For example, I'd like: instance.mymember=1 2. If the ZClass is an Object Manager, how would I create instance objects during construction (I'd like there to be default objects) ? Thanks Russell Fine
ZClasses are obsolete and bad by-implementation. DON'T USE THEM. -aj --On Mittwoch, 10. März 2004 16:48 Uhr -0600 Russell Fine <MisterFine@fineline-services.com> wrote:
I'm new to developing Zope products and I'm trying to understand how I can add funcitonality to a ZClass. Specifically, What is the syntax to :
1. During intialization add an additional member to the ZClass (not a property, a member). For example, I'd like: instance.mymember=1
2. If the ZClass is an Object Manager, how would I create instance objects during construction (I'd like there to be default objects) ?
Thanks
Russell Fine
Russell Fine wrote:
I'm new to developing Zope products and I'm trying to understand how I can add funcitonality to a ZClass.
Don't use ZClassses! Just write a normal python product instead... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Andreas Jung -
Chris Withers -
Russell Fine