#NEWLINE# def properties( self , name ) : #NEWLINE# #INDENT# connection = self . _client . connect ( ) #NEWLINE# rval = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( interval , config ) in self . _intervals . items ( ) : #NEWLINE# #INDENT# rval . setdefault ( interval , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# stmt = select ( [ self . _table . c . i_time ] ) . where ( and_ ( ( self . _table . c . name == name ) , ( self . _table . c . interval == interval ) ) ) . order_by ( asc ( self . _table . c . i_time ) ) . limit ( 1 ) #NEWLINE# rval [ interval ] [ 'first' ] = config [ 'i_calc' ] . from_bucket ( connection . execute ( stmt ) . first ( ) [ 'i_time' ] ) #NEWLINE# stmt = select ( [ self . _table . c . i_time ] ) . where ( and_ ( ( self . _table . c . name == name ) , ( self . _table . c . interval == interval ) ) ) . order_by ( desc ( self . _table . c . i_time ) ) . limit ( 1 ) #NEWLINE# rval [ interval ] [ 'last' ] = config [ 'i_calc' ] . from_bucket ( connection . execute ( stmt ) . first ( ) [ 'i_time' ] ) #NEWLINE# #UNINDENT# return rval