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

Class InvalidProduct

source code

    object --+        
             |        
   ProductBase --+    
                 |    
NonExistingProduct --+
                     |
                    InvalidProduct

An invalid file.

This is returned by getProductForRAccref if all else fails. This usually happens when a file known to the products table is deleted, but it could also be an attempt to use unsupported combinations of files and parameters.

Since any situation leading here is a bit weird, we probably should be doing something else but just return a 404. Hm...

This class always returns an instance from fromRAccref; this means any resolution chain ends with it. But it shouldn't be in PRODUCT_CLASSES in the first place since the fallback is hardcoded into getProductForRAccref.

Instance Methods
 
__str__(self)
str(x)
source code
 
iterData(self) source code

Inherited from NonExistingProduct: __eq__, __init__, renderHTTP

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

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

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

Inherited from ProductBase: setupRealFile

Class Variables

Inherited from ProductBase: __implemented__, chunkSize

Properties

Inherited from object: __class__

Method Details

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

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

source code 
Overrides: ProductBase.fromRAccref

iterData(self)

source code 
Overrides: ProductBase.iterData