| Home | Trees | Index | Help |
|
|---|
| Module pyweb :: Class httpNew |
|
webwidget--+ |html--+ |webwidget--+ | | |notag--+ | httpNew
Subclass of html tag class, which includes HTTP reply headers plus cookies in its dump(), as well as parsing cookies upon construction
http objects have a special attribute 'session', of class 'httpenv'. Recall that httpenv objects themselves have the following magical attributes:cookies - a dict-like object containing cookies. Example:
page.session.cookies['colour'] = 'red' page.session.cookies['colour']['path'] = "/fred" page.session.cookies['colour']['expires'] = 1200 (magic - set seconds ahead)| Method Summary | |
|---|---|
__init__(self,
*args,
**kw)
| |
__setattr__(self,
name,
val)
| |
disableCookies(self)
| |
Writes string fragments to stdout | |
Writes string fragments into list 'bucket', for later joining. | |
send(self)
| |
send1(self)
| |
setstream(self,
stream)
| |
| Inherited from html | |
| |
Add content to a widget. | |
| |
Recursively collate all the content, and content within the content, into one array of string fragments | |
| 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 | |
|---|---|
| Inherited from html | |
str |
dtd = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final...
|
| Inherited from notag | |
str |
delimiter = ''
|
| Inherited from webwidget | |
bool |
notagclose = False
|
| Method Details |
|---|
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
|
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
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat Feb 7 20:08:05 2004 | http://epydoc.sf.net |