Hi Marco,

Thanks for your reply.


This line here: 
>
> ('ERROR','23502', 'null value in column "aboutid" violates not-null 
> constraint') 
>
> it seems that you have set a validator to one of the hidden fields, and 
> since it doesn't seem to a have a default value either, then it's value 
> on submit is null and therefore rejected
>


You're right, I have a validator that validates the combination of nodeID 
and aboutID, both fields are readable/writable False. My first problem was 
the validator not validating, this was solved by setting 
hidden=dict(nodeID=id,aboutID=HOMEABOUTID). The second problem was the one 
described above. Based on your answer: db.aboutText.nodeID.default=id 
db.aboutText.aboutID.default=HOMEABOUTID solved the problem.

Kind regards,

Annet

-- 



Reply via email to