Hey friends! I've got a bunch of hosts running on one of my zope servers. Apache, and SiteAccess made it happen quickly and easily. I have a question regarding a unique error message I've been seeing. When filling out a form, I have a value that is being passed to zope as "cost:int" The form works fine when filled out correctly, but returns an error if this field is left blank. Now, this is the behaviour that I want, but I'm trying to track down where the error page comes from. This is different than "standard_error", and the really peculiar thing about it is that it pulls in the "standard_html" header and footer from the root folder, which happens to be a completely different host. Needless to say it is very confusing to have an error pop up on a forign looking page. Anyone know where this file is? or how I can trick aquisition into letting me use the standard_header and footer from the site that generated the error? thanks so much! -ed-
ed colmar writes:
.... When filling out a form, I have a value that is being passed to zope as "cost:int"
The form works fine when filled out correctly, but returns an error if this field is left blank. Now, this is the behaviour that I want, but I'm trying to track down where the error page comes from. This is different than "standard_error", and the really peculiar thing about it is that it pulls in the "standard_html" header and footer from the root folder, which happens to be a completely different host. The reason:
Form value conversions are almost the first thing, ZPublisher tries for a new request. It happens well before traversal. Therefore, only the root context is available. When you need more control over the error messages, tools such as "Formulator" or "dtml-contract (I think, a GPL product), will help you. Dieter
participants (2)
-
Dieter Maurer -
ed colmar