Add param documentation for VPrintable.

This commit is contained in:
Max Goodman
2013-09-12 14:45:25 -07:00
parent 74ab8cd613
commit e933ab305b

View File

@@ -569,6 +569,12 @@ class VPrintable(VLength):
self.set_error(errors.BAD_STRING)
return None
def param_docs(self):
return {
self.param: "a string up to %d characters long,"
" consisting of printable characters."
% self.max_length,
}
class VTitle(VLength):
def __init__(self, param, max_length = 300, **kw):