[Zope3-Users] Re: Default value for an interface attribute

Douglas Douglas replaceafill at yahoo.com
Thu Mar 1 10:46:40 EST 2007


--- Raphael Ritz <r.ritz at biologie.hu-berlin.de> wrote:

> How about checking whether the value of 'default' is a
> callable and if so call it to obtain the default value.
> That way
> 
>     defautl=date.today
> 
> (without the ())should do what Douglas expects (maybe
> this is even the case already?).
> 

I tried this way, but raises this Exception:

ConfigurationError: ('Invalid value for', 'interface', "(<built-in method today
of type object at 0xb79465c0>, <type 'datetime.date'>)")



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097


More information about the Zope3-users mailing list