Package gavo :: Package base :: Module parsecontext :: Class ReferenceListAttribute
[frames] | no frames]

Class ReferenceListAttribute

source code

          object --+            
                   |            
attrdef.AttributeDef --+        
                       |        
 attrdef.AtomicAttribute --+    
                           |    
          ReferenceAttribute --+
                               |
                              ReferenceListAttribute

A list of references.

These can come as distinct elements -- <ref>a</ref><ref>b</ref> -- or as a comma-joined string with ignored whitespace -- ref="a, //services#b, x.y", or in a mixture between the two.

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

Inherited from ReferenceAttribute: create

Inherited from attrdef.AtomicAttribute: getCopy, makeUserDoc, parse

Inherited from attrdef.AttributeDef: doCallbacks, iterParentMethods

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

Class Variables
  typeDesc_ = 'list of id references (comma separated or in dist...
Properties
  default_

Inherited from object: __class__

Method Details

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

source code 

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

Overrides: object.__init__
(inherited documentation)

feedObject(self, instance, value)

source code 
Overrides: attrdef.AttributeDef.feedObject

feed(self, ctx, instance, literal)

source code 
Overrides: attrdef.AttributeDef.feed

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: attrdef.AtomicAttribute.unparse
(inherited documentation)

Class Variable Details

typeDesc_

Value:
'list of id references (comma separated or in distinct elements)'

Property Details

default_

Get Method:
unreachable.default_(self)