Today
November 1st, 2002
Today I’ve been re-factoring my SMIL app’s ZClasses. Re-factoring is another way of saying, doing properly that that you have made a right hash of using the stuff learned 5 minutes ago.
I seem to have got a hang of how inheritance is working but I’m having trouble with these….
1. How do I limit the number of object types that appear in the “Add” popup?
2. It seems ZSQL Methods can’t find their connection objects if they live in a ZClass rather than in a folder, is this right?
3. Somewhere I remember reading that Zope folders can only have a certain number of objects, what strategies do people use to work around this? Create sub folders, one for each day? Maybe pre create sub folders like this, 0-99, 100-199, 200-299 etc and then put the objects in there….hang on, wouldn’t they have to go into pre-created folders also?











July 8th, 2004 at 2:10 am (#)
1. Depends on the Baseclasses (and the order in which you import them). There should be a tab just for “Sub-objects” or something like that but I never really understood it.
It seems to always be a hazzle this, so you’ll have to test and test to get it right if it is that important.
2. Shouldn’t be right. ZSQL Methods need a database connection, don’t they? You’ll have to make sure (smells ad-hoc) that instansiated objects and methods from your zclass must have a matching DB connection.
Unless you come up with a solid hack/trick using zclasses and SQL will be rather unnatural.
July 8th, 2004 at 2:10 am (#)
Hi Tom,
ad. 3.
Have a look at http://hathaway.freezope.org/Software/BTreeFolder2.
We are using it (in fact a prevoius version) storing about 500 subobjects per folder, but it’s far more capable.
BTW. Spinalot was unbelivably great!
Cheers,
Andrzej