~stephen-j-boddy/terminator/bugfix-1318542-double-chars

« back to all changes in this revision

Viewing changes to terminatorlib/configobj/validate.py

  • Committer: Stephen Boddy
  • Date: 2015-08-08 02:11:30 UTC
  • Revision ID: stephen.j.boddy@gmail.com-20150808021130-9c1npu4gvenkcb1p
A manual has been added to Terminator
* Added source and generated html of manual, and API doc
* setup.py can install the manual (and by extension do can debuild)
* setup.py has (inactive) code for generating the html from the source
  but this will break if rtd theme is not available
* A few changes to doc strings to make the autodoc prettier
* Added help shortcut, by default F1 to open the local manual
* Added button to About tab to launch manual
* A couple of additional string to translate related to manual/help

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
    'is_ip_addr_list',
161
161
    'is_mixed_list',
162
162
    'is_option',
163
 
    '__docformat__',
164
163
)
165
164
 
166
165
 
481
480
    ...     if not value <= max:
482
481
    ...          raise VdtValueTooBigError(value)
483
482
    ...     return value
484
 
    
 
483
    ...
485
484
    >>> fdict = {'int_range': int_range_check}
486
485
    >>> vtr1 = Validator(fdict)
487
486
    >>> vtr1.check('int_range(20, 40)', '30')
571
570
        Arguments:
572
571
            check: string representing check to apply (including arguments)
573
572
            value: object to be checked
 
573
        
574
574
        Returns value, converted to correct type if necessary
575
575
        
576
576
        If the check fails, raises a ``ValidateError`` subclass.