Back to index

plone3  3.1.7
Classes | Namespaces | Functions | Variables
validators.py File Reference

Go to the source code of this file.

Classes

class  ATContentTypes.lib.validators.TALValidator
class  ATContentTypes.lib.validators.TidyHtmlValidator
class  ATContentTypes.lib.validators.TidyHtmlWithCleanupValidator
class  ATContentTypes.lib.validators.NonEmptyFileValidator

Namespaces

namespace  ATContentTypes.lib.validators

Functions

def ATContentTypes.lib.validators.doTidy
def ATContentTypes.lib.validators.wrapValueInHTML
def ATContentTypes.lib.validators.unwrapValueFromHTML
def ATContentTypes.lib.validators.correctEncoding
 

remove 2 spaces from the beginning of each line

nlines = [] for line in body.split('
'): print line if line[:2] == ' ': nlines.append(line[2:]) else: nlines.append(line)
def ATContentTypes.lib.validators.parseErrorData

Variables

string ATContentTypes.lib.validators.__author__ = 'Christian Heimes <tiran@cheimes.de>'
string ATContentTypes.lib.validators.__docformat__ = 'restructuredtext'
tuple ATContentTypes.lib.validators.logger = logging.getLogger('ATCT')
tuple ATContentTypes.lib.validators.RE_MATCH_WARNING = re.compile('^line (\d+) column (\d+) - Warning: (.*)$')
string ATContentTypes.lib.validators.WARNING_LINE = 'line %d column %d - Warning: %s'
tuple ATContentTypes.lib.validators.RE_MATCH_ERROR = re.compile('^line (\d+) column (\d+) - Error: (.*)$')
string ATContentTypes.lib.validators.ERROR_LINE = 'line %d column %d - Error: %s'
tuple ATContentTypes.lib.validators.RE_BODY = re.compile('<body[^>]*?>(.*)</body>', re.DOTALL )
tuple ATContentTypes.lib.validators.RE_GET_HTML_ENCODING = re.compile('(<meta.*?content-type.*?charset[\s]*=[\s]*)([^"]*?)("[^>]*?>)', re.S | re.I)
int ATContentTypes.lib.validators.SUBTRACT_LINES = 11
list ATContentTypes.lib.validators.validatorList = []