| Home | Trees | Index | Help |
|
|---|
| Module pyweb :: Class html |
|
webwidget --+
|
html
http,
httpNewThis is the top-level html page widget.
Subclass off this to create your own pages| Method Summary | |
|---|---|
__init__(self,
*args,
**kw)
| |
__getattr__(self,
name)
| |
__setattr__(self,
attr,
val)
| |
Add content to a widget. | |
addglobal(self,
name,
item)
| |
Writes string fragments to stdout | |
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. | |
| Inherited from webwidget | |
| |
| |
| |
| |
Used with templates. | |
| |
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 | |
What a weird yet consummately pythonic method! Read on... | |
Replaces widget's contents with given items | |
Sets attributes of this widget | |
| Class Variable Summary | |
|---|---|
str |
dtd = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final...
|
| Inherited from webwidget | |
str |
delimiter = '\n'
|
bool |
notagclose = False
|
| Method Details |
|---|
add(self, *items, **kw)Add content to a widget.
|
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
|
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
|
| Class Variable Details |
|---|
dtd
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat Feb 7 20:08:05 2004 | http://epydoc.sf.net |