Package gavo :: Package rscdef :: Module column :: Class DisplayHintAttribute
[frames] | no frames]

Class DisplayHintAttribute

source code

               object --+        
                        |        
base.attrdef.AttributeDef --+    
                            |    
 base.attrdef.AtomicAttribute --+
                                |
                               DisplayHintAttribute

is a display hint.

Display hint literals are comma-separated key=value sequences. Keys are up to the application and evaluated by htmltable, votable, etc.

The parsed values are simply dictionaries mapping strings to strings, i.e., value validation cannot be performed here (yet -- do we want this? A central repository of display hints would be kinda useful...)

Instance Methods
 
__init__(self, name, description, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse(self, value)
returns a typed python value for the string representation value.
source code
 
unparse(self, value)
returns a typed python value for the string representation value.
source code

Inherited from base.attrdef.AtomicAttribute: feed, feedObject, getCopy, makeUserDoc

Inherited from base.attrdef.AttributeDef: doCallbacks, iterParentMethods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  typeDesc_ = 'Display hint'
Properties

Inherited from object: __class__

Method Details

__init__(self, name, description, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: base.attrdef.AtomicAttribute.parse
(inherited documentation)

unparse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: base.attrdef.AtomicAttribute.unparse
(inherited documentation)