/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
Scraper::base::dcssa::DCS Class Reference
Inheritance diagram for Scraper::base::dcssa::DCS:
Inheritance graph
[legend]
Collaboration diagram for Scraper::base::dcssa::DCS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def subbase
def q
def qa
def qd
def qafter
def qbefore

Detailed Description

Definition at line 19 of file dcssa.py.


Constructor & Destructor Documentation

def Scraper::base::dcssa::DCS::__init__ (   self,
  dbconf 
)
SQLAlchemy connection to database, performing
table reflection and mappings from tables 

Specializations:

#. standard query ordering, assuming a `date_time` attribute in tables

Definition at line 20 of file dcssa.py.

00021                                :
00022         """
00023         SQLAlchemy connection to database, performing
00024         table reflection and mappings from tables 
00025         
00026         Specializations:
00027 
00028         #. standard query ordering, assuming a `date_time` attribute in tables
00029 
00030         """
00031         SA.__init__( self, dbconf )


Member Function Documentation

def Scraper::base::dcssa::DCS::subbase (   self,
  dtn 
)
subclass to use, that can be dependent on table coordinate 

Definition at line 32 of file dcssa.py.

00033                           :
00034         """subclass to use, that can be dependent on table coordinate """
00035         return DcsBase

def Scraper::base::dcssa::DCS::q (   self,
  kls 
)

Definition at line 36 of file dcssa.py.

00037                     :
        return self.session.query(kls)
def Scraper::base::dcssa::DCS::qa (   self,
  kls 
)

Definition at line 38 of file dcssa.py.

00039                      :
        return self.session.query(kls).order_by(kls.date_time)
def Scraper::base::dcssa::DCS::qd (   self,
  kls 
)

Definition at line 40 of file dcssa.py.

00041                      :
        return self.session.query(kls).order_by(kls.date_time.desc())
def Scraper::base::dcssa::DCS::qafter (   self,
  kls,
  cut 
)
`date_time` ordered query for instances at or beyond the time cut::

      t0  t1  t2  t3  (t4  t5  t6  t7  t8  t9 ... )  

:param kls: source SQLAlchemy mapped class 
:param cut: local time cutoff datetime 

Definition at line 42 of file dcssa.py.

00043                                :
00044         """
00045         `date_time` ordered query for instances at or beyond the time cut::
00046 
00047               t0  t1  t2  t3  (t4  t5  t6  t7  t8  t9 ... )  
00048 
00049         :param kls: source SQLAlchemy mapped class 
00050         :param cut: local time cutoff datetime 
00051         """
        return self.session.query(kls).order_by(kls.date_time).filter(kls.date_time >= cut)
def Scraper::base::dcssa::DCS::qbefore (   self,
  kls,
  cut 
)
`date_time` ordered query for instances before the cut

Definition at line 52 of file dcssa.py.

00053                                 :
00054         """`date_time` ordered query for instances before the cut"""
00055         return self.session.query(kls).order_by(kls.date_time).filter(kls.date_time < cut)
00056 


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:03 for Scraper by doxygen 1.7.4