| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
ProductDescriptor
An encapsulation of information about some "product" (i.e., file).
This is basically equivalent to a line in the product table; the arguments of the constructor are all available as same-named attributes.
It also has an attribute data defaulting to None. DataGenerators set it, DataFilters potentially change it.
If you inherit from this method and you have a way to guess the size of what the descriptor describes, override the estimateSize() method. The default will return a file size if accessPath points to an existing file, None otherwise.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Methods | |||
|
|||
| Class Variables | |
data = Nonehash(x) |
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
returns a product descriptor for an access reference. If an accrefPrefix is passed in, an AuthenticationFault (for want of something better fitting) is returned when the accref doesn't start with accrefPrefix. |
returns a LinkDef for this descriptor for url. kwargs are passed on to LinkDef and include, in particular, semantics, contentType, contentLength, and description. |
returns a LinkDef for a local file. Arguments are as for LinkDef.fromFile, except you don't have to pass in service if you're using the datalink service itself to access the file; this method will try to find the service by itself. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |