Package dap :: Package plugins :: Module csvfiles :: Class Handler
[hide private]
[frames] | no frames]

Class Handler

source code

        object --+    
                 |    
server.BaseHandler --+
                     |
                    Handler

Instance Methods [hide private]
  __init__(self, filepath, environ)
Handler constructor.
  _parseconstraints(self, constraints=None)
Dataset builder.
  close(self)
Close the CSV file.

Inherited from server.BaseHandler: asc, ascii, das, dds, dods, error, help, html, json, ver

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


Class Variables [hide private]

Inherited from server.BaseHandler: description


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, filepath, environ)
(Constructor)

source code 
Handler constructor.
Overrides: server.BaseHandler.__init__

_parseconstraints(self, constraints=None)

source code 

Dataset builder.

This method opens a CSV reader, extracts the variable names from the first line and returns an iterator to the data. Constraint expressions or handled by the ``get_filter()`` function and a filter to return only data from the columns corresponding to the requested variables.
Overrides: server.BaseHandler._parseconstraints

close(self)

source code 
Close the CSV file.