Logo Search packages:      
Sourcecode: calibre version File versions  Download package

def calibre::customize::conversion::ConversionOption::validate_parameters (   self  ) 

Validate the parameters passed to :method:`__init__`.

Definition at line 29 of file conversion.py.

00029                                  :
        Validate the parameters passed to :method:`__init__`.
        if re.match(r'[a-zA-Z_]([a-zA-Z0-9_])*', self.name) is None:
            raise ValueError(self.name + ' is not a valid Python identifier')
        if not self.help:
            raise ValueError('You must set the help text')

    def __hash__(self):

Generated by  Doxygen 1.6.0   Back to index