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

Class AspectBase

source code

object --+
         |
        AspectBase
Known Subclasses:
TemplateAspectBase, JsonAspect, RdfAspect

Instance Methods [hide private]
 
__init__(self, forType, queries=None, forVariant=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
post_init_setup(self, globalQueries, cfg=None) source code
 
post_init_configure(self, cfg) source code
 
generate_query_items(self, graph, resource, lang)
Generates key, value pairs which constitute named, run queries.
source code
 
make_result_generator(self, graph, resource, lang, data=None)
Returns a generator that takes the arguments 'encoding' and 'output'.
source code
 
using(self, **queries) source code
 
__super(type)
super(type, obj) -> bound super object; requires isinstance(obj, type)...
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, forType, queries=None, forVariant=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

post_init_setup(self, globalQueries, cfg=None)

source code 
Decorators:
  • @contract.state_change

post_init_configure(self, cfg)

source code 
Decorators:
  • @contract.template_method

generate_query_items(self, graph, resource, lang)

source code 
Generates key, value pairs which constitute named, run queries.
Decorators:
  • @contract.helper

make_result_generator(self, graph, resource, lang, data=None)

source code 
Returns a generator that takes the arguments 'encoding' and 'output'.
Decorators:
  • @contract.template_method

__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