Package oort :: Module display :: Class SubTypeAwareDisplay
[hide private]
[frames] | no frames]

Class SubTypeAwareDisplay

source code

 object --+        
          |        
DisplayBase --+    
              |    
        Display --+
                  |
                 SubTypeAwareDisplay

Instance Methods [hide private]
 
__init__(self, cfg=None) source code
 
get_aspect(self, graph, resource, variant) source code
 
create_match_graph(self, graph)
For optimization, creating a sparse graph of "best matching" for all resources and querying only that at runtime.
source code
 
__super(type)
super(type, obj) -> bound super object; requires isinstance(obj, type)...
source code

Inherited from Display: get_extra_data, get_result_generator, parse_variant

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

Class Variables [hide private]

Inherited from Display: aspects, globalQueries, outputEncoding, outputMethod, templateBase

Inherited from DisplayBase: contentType

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cfg=None)
(Constructor)

source code 
Overrides: Display.__init__

get_aspect(self, graph, resource, variant)

source code 
Overrides: Display.get_aspect

__super(type)

source code 
super(type, obj) -> bound super object; requires isinstance(obj, type)
super(type, type2) -> bound super object; requires issubclass(type2, type)
Typical use to call a cooperative superclass method:
class C(B):
    def meth(self, arg):
        super(C, self).meth(arg)

Returns:
unbound super object