c.w.l.TextLineEditorWidget : class documentation

Part of canonical.widgets.lazrjs View In Hierarchy

Known subclasses: canonical.widgets.lazrjs.TextAreaEditorWidget

Wrapper for the lazr-js inlineedit/editor.js widget.
Method __init__ Create a widget wrapper.
Method __call__ Return the HTML to include to render the widget.
Class Method _generate_id Return a presumably unique id for this widget.
def __init__(self, context, attribute, edit_url, id=None, title='Edit', tag='h1', public_attribute=None, accept_empty=False, default_text=None, initial_value_override=None, width=None):
Create a widget wrapper.
ParameterscontextThe object that is being edited.
attributeThe name of the attribute being edited.
edit_urlThe URL to use for editing when the user isn't logged in and when JS is off.
idThe HTML id to use for this widget. Automatically generated if this is not provided.
titleThe string to use as the link title. Defaults to 'Edit'.
tagThe HTML tag to use.
public_attributeIf given, the name of the attribute in the public webservice API.
accept_emptyWhether the field accepts empty input or not.
default_textText to show in the unedited field, if the parameter value is missing or None.
initial_value_overrideUse this text for the initial edited field value instead of the attribute's current value.
widthInitial widget width.
@classmethod
def _generate_id(cls):
Return a presumably unique id for this widget.
def __call__(self):
Return the HTML to include to render the widget.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.