__call__ (
parentComponent,
componentName,
tagName=u'',
attribItems=(),
nonEmpty=False,
domletProperty=None,
dataSpec=None,
paramName=None,
)
Create an IDOMletElement w/specified attribs, etc.
-
tagName
- the element tag name, exactly as it appeared in the source
document
-
attribItems
- a list of
(name,value) tuples representing the
source document attributes for this element, in the order they were
defined, and only the supplied attributes (i.e. no DTD-implied default
values). Template markup attributes (domlet and define) are
excluded.
-
nonEmpty
- indicates that this element should always have an open
and close tag, even if it has no children. This is to support HTML.
-
domletProperty
- the
PropertyName used to retrieve this factory
(minus the peak.web.DOMlets. prefix), or None if the source document
didn't specify a DOMlet factory.
-
dataSpec
- the data specifier from the source document's
domlet
attribute, or an empty string.
-
paramName
- the value of the
define attribute in the source
document, or None if not supplied.
Note that only the first two arguments are positional; all others must
be supplied as keywords.
|