[Product-Developers] invariant validator for add form has no context?
zjs2k at yahoo.com
Thu Jan 19 13:38:11 UTC 2012
Thanks for the quick reply and the explanation on getSite. I know it works
but didn't know how it works.
For my purpose, I actually need the container and to confirm their is no
same content within that container. It is OK to have the same ones
elsewhere. So the container context of an add form will work.
The method z3c.form.field.FieldWidgets.validate set context to None before
getting the validator. I wonder if it will harm anything to remove
"content=None". All I can see is that the validator will need to
discriminate the context as container in an add form, instead of getting
None as context.
View this message in context: http://plone.293351.n2.nabble.com/invariant-validator-for-add-form-has-no-context-tp7202472p7203976.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers