[Checkins] SVN: z3c.form/trunk/src/z3c/form/util.py Add more documentation for extractFileName

Roger Ineichen roger at projekt01.ch
Thu Jun 7 20:11:44 EDT 2007


Log message for revision 76483:
  Add more documentation for extractFileName

Changed:
  U   z3c.form/trunk/src/z3c/form/util.py

-=-
Modified: z3c.form/trunk/src/z3c/form/util.py
===================================================================
--- z3c.form/trunk/src/z3c/form/util.py	2007-06-08 00:07:54 UTC (rev 76482)
+++ z3c.form/trunk/src/z3c/form/util.py	2007-06-08 00:11:44 UTC (rev 76483)
@@ -89,7 +89,10 @@
     """Knows how to extract a filename if a IBytes/IFileWidget was used.
     
     Uploads from win/IE need some cleanup because the filename includes also 
-    the path. cleanUp=True will do this for you.
+    the path. The option cleanup=True will do this for you. The option 
+    allowEmtpyPostFix allows to pass filename without extensions. By default
+    this option is set to False and will raise a ValueError if a filename 
+    doesn't contain a extension.
     """
     widget = getWidgetById(form, id)
     if not allowEmtpyPostFix or cleanup:



More information about the Checkins mailing list