101
101
Python Projects`_.
103
103
.. _configobj.py: http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=configobj.py
104
.. _configobj.zip: http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=configobj-4.1.0.zip
104
.. _configobj.zip: http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=configobj-4.4.0.zip
105
105
.. _validate.py: http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=validate.py
106
106
.. _API Docs: http://www.voidspace.org.uk/python/configobj-api/
107
107
.. _Subversion Repository: http://svn.rest2web.python-hosting.com/branches/configobj4/
141
141
:'float': matches float values
142
142
Has the same parameters as the integer check.
144
:'bool': matches boolean values: ``True`` or ``False``.
145
Acceptable string values for True are : ::
144
:'boolean': matches boolean values: ``True`` or ``False``.
145
Acceptable string values for True are : ::
179
179
Each position can be one of : ::
181
int, str, bool, float, ip_addr
181
int, str, boolean, float, ip_addr
183
183
So to specify a list with two strings followed by two integers,
184
184
you write the check as : ::
205
205
vtor = Validator()
206
206
newval1 = vtor.check('integer', value1)
207
newval2 = vtor.check('bool', value2)
207
newval2 = vtor.check('boolean', value2)
574
2007/02/04 Version 0.2.3
575
-----------------------------
580
2006/12/17 Version 0.2.3-alpha1
581
------------------------------------
585
Fixed validate doc to talk of ``boolean`` instead of ``bool``; changed the
586
``is_bool`` function to ``is_boolean`` (Sourceforge bug #1531525).
589
2006/04/29 Version 0.2.2
590
-----------------------------
592
Addressed bug where a string would pass the ``is_list`` test. (Thanks to
574
596
2005/12/16 Version 0.2.1
575
597
-----------------------------
609
633
<div align="center">
610
<a href="http://www.python.org">
611
<img src="images/powered_by_python.jpg" width="602" height="186" border="0" />
613
<a href="http://www.opensource.org">
614
<img src="images/osi-certified-120x100.gif" width="120" height="100" border="0" />
615
<br /><strong>Certified Open Source</strong>
618
<script type="text/javascript" language="JavaScript">var site="s16atlantibots"</script>
619
<script type="text/javascript" language="JavaScript1.2" src="http://s16.sitemeter.com/js/counter.js?site=s16atlantibots"></script>
621
<a href="http://s16.sitemeter.com/stats.asp?site=s16atlantibots">
622
<img src="http://s16.sitemeter.com/meter.asp?site=s16atlantibots" alt="Site Meter" border=0 />
635
<a href="http://www.python.org">
636
<img src="images/new_python.gif" width="100" height="103" border="0"
637
alt="Powered by Python" />
639
<a href="http://sourceforge.net">
640
<img src="http://sourceforge.net/sflogo.php?group_id=123265&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" />
642
<a href="http://www.opensource.org">
643
<img src="images/osi-certified-120x100.gif" width="120" height="100" border="0"
644
alt="Certified Open Source"/>
648
<a href="http://www.voidspace.org.uk/python/index.shtml">
649
<img src="images/pythonbanner.gif" width="468" height="60"
650
alt="Python on Voidspace" border="0" />
654
<a href="http://sourceforge.net/donate/index.php?group_id=123265">
655
<img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" />
659
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
661
<script type="text/javascript">
662
_uacct = "UA-203625-1";