Hi Plone Developers,
i have some problems with the usage of formlib with plone.
My environment is:
Plone 2.5.4
Zope 2.9.8
Five 1.4.4
plone.app.form branch 2.5
Question 1:
I use the @invariant decorater for checking two fields in my interface.
This works great. But the string in Invalid is not
shown as portal_status_message or as a errer message. How
can i show this message?
@invariant
def arePasswordsEqual(user):
if user.passwort != user.confirm:
raise Invalid(
u"""Das Passwort sind nicht gleich.""")
Question 2:
I ´ve some fields in my interface where i use
the max_length min_length constraints. This works without a problem.
But I want a other error message for the constraints.
The error_messages are in zope/app/locales/de/LC_MESSAGES/zope.po.
Can i override some of the msgid´s in my onw po file?
Or how can i use a message for this error?
Thx Christian
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers