web/formfields.py
branchstable
changeset 4658 25de2eb0432b
parent 4628 2f23148d0870
child 4661 87672c718c3c
--- a/web/formfields.py	Tue Feb 23 08:41:06 2010 +0100
+++ b/web/formfields.py	Tue Feb 23 12:43:15 2010 +0100
@@ -91,7 +91,10 @@
        optional fieldset to which this field belongs to
     :order:
        key used by automatic forms to sort fields
-
+    :ignore_req_params:
+       when true, this field won't consider value potentialy specified using
+       request's form parameters (eg you won't be able to specify a value using for
+       instance url like http://mywebsite.com/form?field=value)
     """
     # default widget associated to this class of fields. May be overriden per
     # instance
@@ -113,6 +116,7 @@
     order = None
     value = _MARKER
     fallback_on_none_attribute = False
+    ignore_req_params = False
 
     def __init__(self, name=None, label=_MARKER, widget=None, **kwargs):
         for key, val in kwargs.items():