l.s.f.StrippableText(Text) : class documentation

Part of lp.services.fields View In Hierarchy

Known subclasses: lp.services.fields.Description, lp.services.fields.Summary, lp.services.fields.Whiteboard

A text that can be configured to strip when setting.
Method __init__ Undocumented
Method normalize Strip the leading and trailing whitespace.
Method set Strip the value and pass up.
Method validate See IField.
def __init__(self, strip_text=False, trailing_only=False, **kwargs):
Undocumented
def normalize(self, value):
Strip the leading and trailing whitespace.
def set(self, object, value):
Strip the value and pass up.
def validate(self, value):
See IField.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.