[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
2006/9/29, Philipp von Weitershausen [EMAIL PROTECTED]: KLEIN Stéphane wrote: I don't understand why Field.default type is Field ? What else do you suggest? NoneType or Object ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
KLEIN Stéphane wrote: 2006/9/29, Philipp von Weitershausen [EMAIL PROTECTED]: KLEIN Stéphane wrote: I don't understand why Field.default type is Field ? What else do you suggest? NoneType To express what? or Object Object requires an interface that the object should provide. Default values don't necessarily have to conform to an interface. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
2006/9/29, Philipp von Weitershausen [EMAIL PROTECTED]: KLEIN Stéphane wrote: 2006/9/29, Philipp von Weitershausen [EMAIL PROTECTED]: KLEIN Stéphane wrote: I don't understand why Field.default type is Field ? What else do you suggest? NoneType To express what? or Object Object requires an interface that the object should provide. Default values don't necessarily have to conform to an interface. Simply, if I do : myfield.default = ufoobar ufoobar isn't Field type but String. Then I don't understand why default type is Field. Well, I know, Python isn't typed language... therefore it's working. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
KLEIN Stéphane wrote: I don't understand why Field.default type is Field ? What else do you suggest? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users