#NEWLINE# def _store_key( self , obj , interval , idstring = '' ) : #NEWLINE# #INDENT# '\n        Tries to create a store_key for the object.  Returns a tuple\n        (isdb, store_key) where isdb is a boolean True if obj was a\n        database object, False otherwise.\n\n        Args:\n            obj (Object): Subscribing object.\n            interval (int): Ticker interval\n            idstring (str, optional): Additional separator between\n                different subscription types.\n\n        ' #NEWLINE# if hasattr ( obj , 'db_key' ) : #NEWLINE# #INDENT# objkey = pack_dbobj ( obj ) #NEWLINE# isdb = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# objkey = _GA ( obj , 'key' ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# objkey = id ( obj ) #NEWLINE# #UNINDENT# isdb = False #NEWLINE# #UNINDENT# return ( isdb , ( objkey , interval , idstring ) )