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

Class Option

source code

                   object --+            
                            |            
 base.structure.StructureBase --+        
                                |        
                   object --+   |        
                            |   |        
           base.common.Parser --+        
                                |        
base.structure.ParseableStructure --+    
                                    |    
             base.structure.Structure --+
                                        |
                                       Option

A value for enumerated columns.

For presentation purposes, an option can have a title, defaulting to the option's value.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
completeElement(self, ctx) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from base.structure.Structure: callCompletedCallbacks, finishElement, onElementComplete, validate

Inherited from base.structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

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

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'option'
a sentinel for all kinds of undefined values.
  __implemented__ = <implementedBy gavo.rscdef.column.Option>
  attrSeq = [<gavo.base.parsecontext.IdAttribute object>, <gavo....
  managedAttrs = {'content_': <gavo.base.structure.DataContent o...

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

__provides__(...)

 

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

Overrides: base.common.Parser.__provides__

Class Variable Details

attrSeq

Value:
[<gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.structure.DataContent object>]

managedAttrs

Value:
{'content_': <gavo.base.structure.DataContent object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'title': <gavo.base.attrdef.UnicodeAttribute object>}