Package ATContentTypes :: Package lib :: Module validators
[show private | hide private]
[frames | no frames]

Module ATContentTypes.lib.validators

Classes
NonEmptyFileValidator Fails on empty non-existant files...
TALValidator Validates a text to be valid TAL code...
TidyHtmlValidator use mxTidy to check HTML...
TidyHtmlWithCleanupValidator use mxTidy to check HTML...

Variable Summary
str __author__ = 'Christian Heimes <ch@comlounge.net>'
str ERROR_LINE = 'line %d column %d - Error: %s'
SRE_Pattern RE_BODY = <body[^>]*?>(.*)</body>
SRE_Pattern RE_MATCH_ERROR = ^line (\d+) column (\d+) - Error: (.*)$...
SRE_Pattern RE_MATCH_WARNING = ^line (\d+) column (\d+) - Warning: (...
int SUBTRACT_LINES = 11                                                                    
list validatorList = [<ATContentTypes.lib.validators.TALValid...
str WARNING_LINE = 'line %d column %d - Warning: %s'

Variable Details

__author__

Type:
str
Value:
'Christian Heimes <ch@comlounge.net>'                                  

ERROR_LINE

Type:
str
Value:
'line %d column %d - Error: %s'                                        

RE_BODY

Type:
SRE_Pattern
Value:
<body[^>]*?>(.*)</body>                                                

RE_MATCH_ERROR

Type:
SRE_Pattern
Value:
^line (\d+) column (\d+) - Error: (.*)$                                

RE_MATCH_WARNING

Type:
SRE_Pattern
Value:
^line (\d+) column (\d+) - Warning: (.*)$                              

SUBTRACT_LINES

Type:
int
Value:
11                                                                    

validatorList

Type:
list
Value:
[<ATContentTypes.lib.validators.TALValidator instance at 0xb57726ac>,
 <ATContentTypes.lib.validators.TidyHtmlValidator instance at 0xb57726\
0c>,
 <ATContentTypes.lib.validators.TidyHtmlWithCleanupValidator instance \
at 0xb577292c>,
 <ATContentTypes.lib.validators.NonEmptyFileValidator instance at 0xb5\
77268c>]                                                               

WARNING_LINE

Type:
str
Value:
'line %d column %d - Warning: %s'                                      

Generated by Epydoc 2.1 on Wed Nov 30 04:00:21 2005 http://epydoc.sf.net