Package turbogears :: Package widgets :: Module base

Module base

source code

Classes
  Widget
A TurboGears Widget.
  CompoundWidget
A widget that can contain other widgets.
  WidgetsList
A widget list.
  Resource
A resource for your widget.
  Link
A widget resource that is a link.
  CSSLink
A CSS link.
  JSLink
A JavaScript link.
  Source
  CSSSource
A CSS source snippet.
  JSSource
A JavaScript source snippet.
  WidgetDescription
A description for a Widget.
Functions
 
load_widgets() source code
 
register_static_directory(modulename, directory)
Set up a static directory for JavaScript and CSS files.
source code
 
set_with_self(self)
Return the needed CSS ressources.
source code
Variables
  all_widgets = set()
  static = "turbogears.widgets"
  js_location = Enum('head', 'bodytop', 'bodybottom')
  mochikit = TGMochiKit("tgmochikit")
  jsi18nwidget = JSI18NWidget()
Function Details

register_static_directory(modulename, directory)

source code 

Set up a static directory for JavaScript and CSS files.

You can refer to this static directory in templates as ${tg.widgets}/modulename