[Z3-sqlos] Re: problem with notNull=True on an attribute/column
Brian Sutherland
jinty at web.de
Mon Jan 23 01:05:25 CET 2006
On Sun, Jan 22, 2006 at 08:01:17PM +0000, Christian Lück wrote:
> I think the exception is due to the way objects are created in z3. They
> first get instantiated and then the attributes are set in a second step.
> SQLObject doesn't like that. It's in the doc there.
With zope.app.form (i.e. <browser:addform>) there is the
keyword_arguments keyword. That way you can pass any keywords you want
to the factory. I would suggest that.
I am sure there would be an equivalent solution with zope.app.formlib.
Otherwise you can use the sqlobjct default keyword to give the columns
default values until they are set with the real ones. But that may
result in bad data in your database as well as more SQL statements than
are necessary.
--
Brian Sutherland
Metropolis - "it's the first movie with a robot. And she's a woman.
And she's EVIL!!"
More information about the z3-sqlos
mailing list