Package gavo :: Package protocols :: Module products :: Class DCCProduct
[frames] | no frames]

Class DCCProduct

source code

 object --+    
          |    
ProductBase --+
              |
             DCCProduct

A class representing a product returned by a DC core.

Do not use this any more. It is superseded by datalink. You can put datalink URLs into dc.product's accessPath.

The source path of the rAccref's productsRow must have the form dcc://<rd.id>/<core id>?<coreAccref>; rd.id is the rd id with slashes replaced by dots. This means this scheme doesn't work for RDs with ids containing dots, but you shouldn't do that in the first place. coreAccref is just an opaque string that does not necessarily match the product's accref, but probably will in most cases.

The context grammar receives a dictionary with the param dict, plus the coreAccref as accref. The core must return an actual mime type and a string.

As a special service, iterData here can take a svcs.QueryMeta instance which, if given, is passed on to the core.

See SDMCore for an example for how this can work.

Instance Methods
 
__init__(self, rAccref)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
iterData(self, queryMeta={'direction': 'ASC', 'dbLimit': 100, 'format': 'HTML', 'verbos...) source code
 
renderHTTP(self, ctx) source code

Inherited from ProductBase: __eq__, __ne__, __providedBy__, __provides__, __repr__, __str__, close, read

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

Class Methods
 
fromRAccref(cls, rAccref, grammar=None) source code

Inherited from ProductBase: setupRealFile

Class Variables

Inherited from ProductBase: __implemented__, chunkSize

Properties

Inherited from object: __class__

Method Details

__init__(self, rAccref)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

fromRAccref(cls, rAccref, grammar=None)
Class Method

source code 
Overrides: ProductBase.fromRAccref

iterData(self, queryMeta={'direction': 'ASC', 'dbLimit': 100, 'format': 'HTML', 'verbos...)

source code 
Overrides: ProductBase.iterData

renderHTTP(self, ctx)

source code 
Overrides: ProductBase.renderHTTP