Package Pyblio :: Package Format :: Module DSL :: Class switch
[show private | hide private]
[frames | no frames]

Type switch

object --+    
         |    
      Glue --+
             |
            switch


The switch operator helps in bringing together multiple citation parts, according to the value of a Txo.
>>> citation = switch('doctype')
>>> citation.case(ARTICLE=article, BOOK=book)
>>> citation.default(default)

Method Summary
  __init__(self, switch)
  __call__(self, db)
  __repr__(self)
  case(self, **kargs)
  default(self, v)
    Inherited from Glue
  __add__(self, other)
  __or__(self, other)
  __radd__(self, other)
  __ror__(self, other)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Wed Feb 15 23:19:37 2006 http://epydoc.sf.net