#NEWLINE# def get_object( self , ct , date = None ) : #NEWLINE# #INDENT# if ( self . type == self . _TYPE_COUNTER ) : #NEWLINE# #INDENT# start = None #NEWLINE# final = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( start , final ) = self . get_period ( date ) #NEWLINE# #UNINDENT# ( obj , created ) = NumberRangeModel . objects . get_or_create ( ct = ct , period_start = ct , period_final = final ) #NEWLINE# return obj