~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/util/configobj/docs/validate.txt

  • Committer: Vincent Ladeuil
  • Date: 2007-11-15 11:28:37 UTC
  • mto: (3017.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3018.
  • Revision ID: v.ladeuil+lp@free.fr-20071115112837-8wyszawjlg8d34k2
Update configobj to version 4.4.0:
* bzrlib/util/configobj/configobj.py
* bzrlib/util/configobj/docs/BSD-LICENSE.txt 
* bzrlib/util/configobj/docs/configobj.txt 
* bzrlib/util/configobj/docs/validate.txt 

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
 
10
10
:Authors: `Michael Foord`_, `Nicola Larosa`_, `Mark Andrews`_
11
 
:Version: Validate 0.2.1
12
 
:Date: 2005/12/16
 
11
:Version: Validate 0.2.3
 
12
:Date: 2007/02/04
13
13
:Homepage: `Validate Homepage`_
14
14
:License: `BSD License`_
15
15
:Support: `Mailing List`_
66
66
Downloading
67
67
===========
68
68
 
69
 
The current version is **0.2.1**, dated 16th December 2005. 
 
69
The current version is **0.2.3**, dated 4th February 2007. 
70
70
 
71
71
You can get obtain validate in the following ways :
72
72
 
101
101
Python Projects`_.
102
102
 
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.
143
143
 
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 : ::
146
146
 
147
147
             true, on, yes, 1
148
148
 
178
178
 
179
179
               Each position can be one of : ::
180
180
 
181
 
                   int, str, bool, float, ip_addr
 
181
                   int, str, boolean, float, ip_addr
182
182
 
183
183
               So to specify a list with two strings followed by two integers,
184
184
               you write the check as : ::
204
204
    #
205
205
    vtor = Validator()
206
206
    newval1 = vtor.check('integer', value1)
207
 
    newval2 = vtor.check('bool', value2)
 
207
    newval2 = vtor.check('boolean', value2)
208
208
    # etc ...
209
209
 
210
210
    {-coloring}
571
571
CHANGELOG
572
572
=========
573
573
 
 
574
2007/02/04      Version 0.2.3
 
575
-----------------------------
 
576
 
 
577
Release of 0.2.3
 
578
 
 
579
 
 
580
2006/12/17      Version 0.2.3-alpha1
 
581
------------------------------------
 
582
 
 
583
By Nicola Larosa
 
584
 
 
585
Fixed validate doc to talk of ``boolean`` instead of ``bool``; changed the
 
586
``is_bool`` function to ``is_boolean`` (Sourceforge bug #1531525).
 
587
 
 
588
 
 
589
2006/04/29      Version 0.2.2
 
590
-----------------------------
 
591
 
 
592
Addressed bug where a string would pass the ``is_list`` test. (Thanks to
 
593
Konrad Wojas.)
 
594
 
 
595
 
574
596
2005/12/16      Version 0.2.1
575
597
-----------------------------
576
598
 
585
607
 
586
608
Moved a function call outside a try...except block.
587
609
 
 
610
 
588
611
2005/08/18      Version 0.2.0
589
612
-----------------------------
590
613
 
592
615
 
593
616
Does type conversion as well.
594
617
 
 
618
 
595
619
2005/02/01      Version 0.1.0
596
620
-----------------------------
597
621
 
607
631
.. raw:: html
608
632
 
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" />
612
 
        </a>
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>
616
 
        </a>
617
 
        <br /><br />
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>
620
 
        <noscript>
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 />
623
 
            </a>
624
 
        </noscript>
 
634
        <p>
 
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" />
 
638
            </a>
 
639
            <a href="http://sourceforge.net">
 
640
                <img src="http://sourceforge.net/sflogo.php?group_id=123265&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" />
 
641
            </a>
 
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"/>
 
645
            </a>
 
646
        </p>
 
647
        <p>
 
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" />
 
651
            </a>
 
652
        </p>
 
653
        <p>
 
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" /> 
 
656
            </a>
 
657
        </p>
 
658
        <p>
 
659
            <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
 
660
            </script>
 
661
            <script type="text/javascript">
 
662
            _uacct = "UA-203625-1";
 
663
            urchinTracker();
 
664
            </script>
 
665
        </p>
625
666
    </div>
 
667