7 Dec
2000
7 Dec
'00
8:49 a.m.
Hi, I'm using a class attribute _v_label_index to store an index of my managetab options (in a multi managementtabs mixin product). To create _v_label_index i use a module level method that I run in the class scope, like this: def initIndex(manage_options,...): ... class myclass(...): ... manage_options = (...) _v_label_index = initIndex(manage_options) Now this work but the implementor needs to have the row "_v_label_index = initIndex(manage_options)" in his sub class. Is this "good" design? Does class attributes get saved to the ZODB? I use the "_v_..." notation just in case. Cheers, Johan Carlsson