[Mpuls-commits] r4899 - in base/trunk: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 11 10:52:33 CEST 2011
Author: torsten
Date: 2011-04-11 10:52:32 +0200 (Mon, 11 Apr 2011)
New Revision: 4899
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/validators.py
Log:
Issue1924: Fixed IE6 specific code which leads to TB in Firefox when trying to overwrite a nonexisting file.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-04-11 08:38:49 UTC (rev 4898)
+++ base/trunk/ChangeLog 2011-04-11 08:52:32 UTC (rev 4899)
@@ -4,6 +4,8 @@
dislay = None for all elements.
* mpulsweb/templates/administration/edit_user.mako: Issue1906: Hide
option to reset the password for the admins own account.
+ * mpulsweb/lib/validators.py: Issue1924: Fixed IE6 specific code which
+ leads to TB in Firefox when trying to overwrite a nonexisting file.
2011-04-08 Björn Ricks <bjoern.ricks at intevation.de>
Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py 2011-04-11 08:38:49 UTC (rev 4898)
+++ base/trunk/mpulsweb/lib/validators.py 2011-04-11 08:52:32 UTC (rev 4899)
@@ -122,7 +122,9 @@
# the file. The rest of the civilized world only sends the filename.
# So, split the "filename" by '\' , take the last part and go on on
# our merry ways
- name = file.get('filename').split('\\')[-1]
+ name = file.get('filename')
+ if name:
+ name = name.split('\\')[-1]
field_dict[self.field_names[1]] = name
ow = field_dict[self.field_names[2]]
More information about the Mpuls-commits
mailing list