ServletWriter

This module holds the actual file writer class.

Copyright (c) by Jay Love, 2000 (mailto:jsliv@jslove.org)

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee or royalty is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation or portions thereof, including modifications, that you make.

This software is based in part on work done by the Jakarta group.

class PSP.ServletWriter.ServletWriter(ctxt)

Bases: object

This file creates the servlet source code.

Well, it writes it out to a file at least.

__init__(ctxt)
close()
indent(s)

Indent the string.

popIndent()
printChars(s)

Just prints what its given.

printComment(start, stop, chars)
printIndent()

Just prints tabs.

printList(strList)

Prints a list of strings with indentation and a newline.

printMultiLn(s)
println(line=None)

Print with indentation and a newline if none supplied.

pushIndent()

this is very key, have to think more about it

quoteString(s)

Escape the string.

setIndentSpaces(amt)
setIndentType(indentType)
setIndention()