fandango.web module

Description

Some extensions to python dictionary ThreadDict: Thread safe dictionary with redefinable read/write methods and a backgroud thread for hardware update. defaultdict_fromkey: Creates a dictionary with a default_factory function that creates new elements using key as argument. CaselessDict: caseless dictionary CaselessDefaultDict: a join venture between caseless and default dict

@deprecated @note see in tau.core.utils.containers

by Sergi Rubio, srubio@cells.es, 2010

Functions

em

fandango.web.em(s)

code

fandango.web.code(s)

iname

fandango.web.iname(s)

camel

fandango.web.camel(s)

color

fandango.web.color(s, color)

raw

fandango.web.raw(s)

table

fandango.web.table(s)

bold

fandango.web.bold(s)

title

fandango.web.title(s, n=1)

jqplot

fandango.web.jqplot(title, ats)[source]

cell

fandango.web.cell(s)

dicts2table

fandango.web.dicts2table(dcts, keys=None, formatter=None)[source]
Parameters:
  • dcts – a list of dictionaries
  • keys – an alternative list of keys

under

fandango.web.under(s)

size

fandango.web.size(s, size)

body

fandango.web.body(s)

dict2dict2table

fandango.web.dict2dict2table(seq, keys=None, formatter=None)[source]
Parameters:
  • seq – a nested dictionary {:{}}
  • keys – a list of header names

title1

fandango.web.title1(s)

ulist

fandango.web.ulist(s)

iurl

fandango.web.iurl(url)

list_to_ulist

fandango.web.list_to_ulist(l)[source]

row

fandango.web.row(s)

item

fandango.web.item(s)

paragraph

fandango.web.paragraph(s)

page

fandango.web.page(s)

raw autodoc

fandango.web.body(s)
fandango.web.bold(s)
fandango.web.camel(s)
fandango.web.cell(s)
fandango.web.code(s)
fandango.web.color(s, color)
fandango.web.dict2dict2table(seq, keys=None, formatter=None)[source]
Parameters:
  • seq – a nested dictionary {:{}}
  • keys – a list of header names
fandango.web.dicts2table(dcts, keys=None, formatter=None)[source]
Parameters:
  • dcts – a list of dictionaries
  • keys – an alternative list of keys
fandango.web.em(s)
fandango.web.ilink(s, url)
fandango.web.iname(s)
fandango.web.item(s)
fandango.web.iurl(url)
fandango.web.jqplot(title, ats)[source]
fandango.web.link(s, url)
fandango.web.list_to_ulist(l)[source]
fandango.web.page(s)
fandango.web.paragraph(s)
fandango.web.raw(s)
fandango.web.row(s)
fandango.web.size(s, size)
fandango.web.table(s)
fandango.web.title(s, n=1)
fandango.web.title1(s)
fandango.web.ulist(s)
fandango.web.under(s)