Tue, 2 Nov 1999 07:36:47 -0600
> Why does Zope asks for a value to enter for a new property when you're
> making a class? I understand that you've to enter a value when you're
> making a Class instance? But while defining a class??? Is this meant as a
> default value??
Okay, the problem is that Python does not know about data types. You cannot
declare an"empty" (variable without value) variable in Python, since a
statement like 'int test' does not exist.I have heard from DC (someone correct
me please if I am wrong) that they tried to convind Guido to put variable
declarations into the language without success.
You do not need to supply a default value for strings and text, since it
usually uses "" to do that. I usually put 0 for the integers and floats.
I know that is very annoying, but has to that way.
But about Dates. Hmm, Zope uses an early (completely GPL) version of DateTime.
I thought you can create a DateTime object without a default value. Strange.
Tom, I hope that helped.
iXL - Software Designer and Engineer
CBU - Physics, Computer Science and Chemistry Student