[storm] value_factory
Gustavo Niemeyer
gustavo at niemeyer.net
Fri Feb 6 13:55:42 GMT 2009
Hi Joshua,
> Is value_factory supposed to be functional? Tracing down into
> variable.py I find that it is Undef even if I set it in my column
> definition. Same with 'value'.
What you define in a class isn't a variable, but a property. The
correct attributes for a property are "default" and "default_factory".
That raises an interesting problem, though. Storm should raise an
error when unknown keyword arguments are used in a property. I've
opened a bug about this:
https://bugs.launchpad.net/storm/+bug/326170
--
Gustavo Niemeyer
http://niemeyer.net
More information about the storm
mailing list