| Home | Trees | Index | Help |
|
|---|
| Module pyweb :: Class webwidget |
|
a,
abbr,
acronym,
address,
applet,
area,
b,
base,
basefont,
bdo,
big,
blockquote,
body,
br,
button,
caption,
center,
cite,
code,
col,
colgroup,
del_,
dfn,
div,
em,
fieldset,
font,
form,
frameset,
h1,
h2,
h3,
h4,
h5,
h6,
head,
hr,
html,
i,
iframe,
img,
input,
ins,
isindex,
kbd,
label,
legend,
li,
link,
map,
meta,
notag,
object_,
ol,
optgroup,
option,
p,
param,
pre,
q,
s,
samp,
script,
select,
small,
span,
strike,
strong,
sub,
sup,
table,
tbody,
td,
textarea,
tfoot,
th,
thead,
title,
tr,
tt,
u,
ul,
var| Method Summary | |
|---|---|
Generic widget constructor. | |
__getattr__(self,
name)
| |
__getitem__(self,
name)
| |
__len__(self)
| |
__nonzero__(self)
| |
__repr__(self)
| |
__setattr__(self,
attr,
val)
| |
Used with templates. | |
__str__(self)
| |
Add content to a widget. | |
addglobal(self,
name,
item)
| |
Adds a named item in the scope of the current tag | |
Returns a space-separated list of the widget's tag attribs | |
renders the tag attributes into the bucket | |
Returns a space-separated list of the widget's tag attribs | |
Stops this tag from being enclosed in tags | |
Writes string fragments to stdout | |
What a weird yet consummately pythonic method! Read on... | |
Recursively collate all the content, and content within the content, into one array of string fragments | |
Writes string fragments into list 'bucket', for later joining. | |
Replaces widget's contents with given items | |
Sets attributes of this widget | |
| Class Variable Summary | |
|---|---|
str |
delimiter = '\n'
|
bool |
notagclose = False
|
| Method Details |
|---|
__init__(self,
*content,
**kw)
|
__setitem__(self,
name,
val)
Used with templates. Sets a 'variable' within a template
|
add(self, *items, **kw)Add content to a widget. |
addnamed(self, name, *item, **kw)Adds a named item in the scope of the current tag |
attrdump(self)Returns a space-separated list of the widget's tag attribs |
attrdumpinto(self, bucket)renders the tag attributes into the bucket |
attrToStdout(self)Returns a space-separated list of the widget's tag attribs |
dontWrap(self)Stops this tag from being enclosed in tags |
dump(self)Writes string fragments to stdout If opening and closing tags (eg "<p>" and "</p>") are present, encloses all the content within these tags |
join(self, args)What a weird yet consummately pythonic method! Read on... This method renders out the tag object, and uses that as the separator for a join. For example:
|
render(self)Recursively collate all the content, and content within the content, into one array of string fragments |
renderinto(self, bucket)Writes string fragments into list 'bucket', for later joining. If opening and closing tags (eg "<p>" and "</p>") are present, encloses all the content within these tags |
set(self, *items)Replaces widget's contents with given items |
setattr(self, *args, **kw)Sets attributes of this widget |
| Class Variable Details |
|---|
delimiter
|
notagclose
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat Feb 7 20:08:06 2004 | http://epydoc.sf.net |