Module pyweb :: Class style
[show private | hide private]
[frames | no frames]

Class style

webwidget --+    
            |    
        notag --+
                |
               style


Creates an HTML '<STYLE>' tag
Method Summary
  __init__(self, *args)
  __setitem__(self, item, val)
  add(self, *args)
  dump(self)
Writes string fragments to stdout
  renderinto(self, bucket)
Writes string fragments into list 'bucket', for later joining.
    Inherited from webwidget
  __getattr__(self, name)
  __getitem__(self, name)
  __len__(self)
  __nonzero__(self)
  __repr__(self)
  __setattr__(self, attr, val)
  __str__(self)
  addglobal(self, name, item)
  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
  join(self, args)
What a weird yet consummately pythonic method! Read on...
  render(self)
Recursively collate all the content, and content within the content, into one array of string fragments
  set(self, *items)
Replaces widget's contents with given items
  setattr(self, *args, **kw)
Sets attributes of this widget

Class Variable Summary
dict elements = {}
list raw = []
    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
Overrides:
pyweb.webwidget.dump (inherited documentation)

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
Overrides:
pyweb.webwidget.renderinto (inherited documentation)

Class Variable Details

elements

Type:
dict
Value:
{}                                                                     

raw

Type:
list
Value:
[]                                                                     

Generated by Epydoc 2.0 on Sat Feb 7 20:08:05 2004 http://epydoc.sf.net