Home | Trees | Index | Help |
|
---|
Package Pyblio :: Package Format :: Module DSL :: Class switch |
|
object
--+ |Glue
--+ | switch
>>> citation = switch('doctype')
>>> citation.case(ARTICLE=article, BOOK=book)
>>> citation.default(default)
Method Summary | |
---|---|
__init__(self,
switch,
_cases,
_default)
| |
__call__(self,
db,
props)
| |
__repr__(self)
| |
case(self,
**kargs)
| |
default(self,
v)
| |
Inherited from Glue | |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 | http://epydoc.sf.net |