[Zope] Still Chipping Away At Formulator/ZPT Interface
beno
zope@thewebsons.com
Wed, 06 Nov 2002 10:02:06 -0400
At 01:34 PM 11/6/2002 +0100, you wrote:
>Hi beno,
>
> [...]
> > So I did as instructed, added this line:
> > from Products.Formulator.Errors import ValidationError,
> FormValidationError
> > and now it wants me to authenticate! Why? I changed the security on
> *access
> > contents information* to *anonymous* just to see if that was it, but no.
> > What do?
>
>This cannot happen; I therfore conclude You do not exist ;-)
I exist as a problem to myself ;)
It was my bad. I didn't restart Zope <:-) So I did that and now I get this
error upon submitting incorrect info from my form:
Error Type: Attribute Error
Error Val: args
and it comes from this script:
try:
result = context.email_us_formulator.validate_all(context.REQUEST)
except FormValidationError, errlist:
for item in errlist:
return "<", item.args, ">"
Now, from the Errors.py script we have the following:
class FormValidationError(Exception):
def __init__(self, errors, result):
Exception.__init__(self,"Form Validation Error")
self.errors = errors
self.result = result
So, what is *args*? Is this something defined in Python itself?
TIA,
beno