Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid spurious inline validation errors

svn path=/plone.formwidget.namedfile/trunk/; revision=40466
  • Loading branch information...
commit d623cd9969a51d9016ec4f99332c879a96a67e5f 1 parent 1e08657
@davisagli davisagli authored
Showing with 8 additions and 1 deletion.
  1. +5 −1 docs/HISTORY.txt
  2. +3 −0  plone/formwidget/namedfile/widget.py
View
6 docs/HISTORY.txt
@@ -1,9 +1,13 @@
Changelog
=========
-1.0b8 (unreleased)
+1.0b8 (2010-10-01)
------------------
+* Avoid showing validation errors during KSS validation, as the file is not
+ uploaded in this case.
+ [davisagli]
+
* Don't use the action from the request when the form submission succeeded.
(In that case we always want "keep existing image")
[davisagli]
View
3  plone/formwidget/namedfile/widget.py
@@ -84,6 +84,9 @@ def action(self):
def extract(self, default=NOVALUE):
action = self.request.get("%s.action" % self.name, None)
+ if self.request.get('PATH_INFO', '').endswith('kss_z3cform_inline_validation'):
+ action = 'nochange'
+
if action == 'remove':
return None
elif action == 'nochange':
Please sign in to comment.
Something went wrong with that request. Please try again.